Soldato
- Joined
- 7 Jan 2007
- Posts
- 10,607
- Location
- Sussex, UK
Find the number of terms in the following sequence:
5, -10, 20, ... , -40960
Now I have worked it out wrongly as follows:
r=-2
a1=5
an = a1 r^(n-1)
-40960 = 5 * -2^(n-1)
log 40960/log 2 = 15
-40960 = 5 * -2^(15-1) Which I have got wrong...
By testing the next number down, I get the right answer of 14.... but how do I do this properly and not guess after a **** up.
Where have I cocked up? lol
5, -10, 20, ... , -40960
Now I have worked it out wrongly as follows:

r=-2
a1=5
an = a1 r^(n-1)
-40960 = 5 * -2^(n-1)
log 40960/log 2 = 15
-40960 = 5 * -2^(15-1) Which I have got wrong...
By testing the next number down, I get the right answer of 14.... but how do I do this properly and not guess after a **** up.
Where have I cocked up? lol