Let r be the common ratio. The 7th term is a7=ar6.
64=729r6
r6=72964=(32)6
The power 6 is even, so r can be positive or negative:
r=±32
When r=32: since r<1, use Sn=1−ra(1−rn).
S7=1−32729[1−(32)7]
=3(729)(1−2187128)
=2187⋅21872059
=2059
When r=−32:
S7=1+32729[1−(−32)7]
=53(729)(1+2187128)
=53(729)⋅21872315
=463
Hence, S7=2059 when r=32 (the answer given in the book), and S7=463 when r=−32.