Is there a concise way to solve $T = S + ( ( S - E ) * N )$ without needing to enter $S$ twice?

54 Views Asked by At

If I have a starting number S and an ending number E, and it can be repeated N times, what will be the final total T?

For example:

S = 3540
E = 3650
N = 8

I can calculate that each step will increase the total by ( S - E ) 110 and it can have ( N ) 8 steps.

110 * 8 = 880
3540 + 880 = 4420

I can write a function similar to:

T = S + ( ( S - E ) * N )

T = S + ( ( E - S ) * N )

and just using a calculator: subtract $S$ from $E$, then multiply that by $N$, and then add that to $S$.

Is there a proper way to do this on a calculator without having to specify $S$ twice?

1

There are 1 best solutions below

0
On BEST ANSWER

Answer was deleted, reposting.

-S * ( N - 1 ) + N * E