We have 4⁶ = 4096 and 4⁷ = 16,384, which is to say that the given sum only contains the first six powers of 4.
Now,
and you subtract the sum of the first six powers of 4 to get the sum S that you want,
1.6m questions
2.0m answers