You save £1 on day one, £2 on day two, and so on. Can you total it without a loop?
You put one pound into a savings pot on day one, two on day two, and keep going up by a pound each day. Your code could add each amount in turn. Can it get the same total without going through every day?
Start your running total at zero. Each new row shows the number you add and the total you get. Add one to get one, add two to get three, then add three to get six. This is a trace of the running total.
Watch your total change from zero to one, then three, then six. Count one addition for each arrow. To sum the integers from one to n this way, you do n additions. We'll count arithmetic used to find the sum, leaving out loop control such as updating the counter.
You start with a total of zero and add each integer from one to six in turn. Count how many times the total changes by an addition. Pick an answer.
Pair one to four with a reversed copy. One pairs with four, two with three, three with two, and four with one. Each pair makes five, one more than four. Multiply four by five to count both copies. Divide by two to get one copy: ten.
Trace from zero: five additions reach fifteen and five more reach fifty-five. For the formula, add one to ten to get eleven per pair, multiply by ten to count both copies, then divide by two. Both give fifty-five: ten additions for the loop, three operations for the formula.
Now you want the sum from one to eight. Use the formula, then count the arithmetic operations it takes: one for each addition, multiplication or division. Pick the answer with the correct total and operation count.
For ten integers, the loop does ten additions and the formula does three arithmetic operations. Increase the input to a hundred, then a thousand. The loop needs one more addition for every extra integer. The formula still uses one addition, one multiplication and one division.
You could write the loop on one line and the formula on three. Both can sum one to a hundred. The claim that fewer lines means less work fails here: the loop does a hundred additions, while the formula does three operations. Count what actually runs.
If you're asked which algorithm is more time efficient for summing one to five hundred, compare the same task. The loop does five hundred additions and the formula does three arithmetic operations. On this measure, the formula is more time efficient. The counts show work done; they don't measure seconds.