Blazing goIITian
for the first problem the required sum is.....
now consider
T =
using sum of GP formula
T = =
now find which will give you S