The formula for a geometric sequence is
To find r, divide the second term by the first term. .256/.1024 = 2.5
Set up an equation to find the position of the middle term.
If the middle term is the 9th term, that means that there are 8 terms before it and 8 terms after it so there are 17 terms in the sequence.