hi

I know the answer to this question is 9 but I am not sure how to get there.

I know that there is probably a really simple method but at the moment I am making a mistake somewhere,

2+4+8+...+512

find the number of terms in the geometric series?

thanks