Hello, thank you for taking the time to post your question!
This question follows a geometric sequence, meaning that
an = a1(r)^(n-1) will be the underlying formula here
for the scenario in part (a) we’re using r = 2, n = 31, and a1 = 1 and then solving for a31
a31 = 1(2)^(31-1) = 1(2)^30 = 2^30 pennies
converting that over to dollars gives 2^30 / 100 = $10,737,418.24 for the income on Day 31, which is astoundingly large if you think about it
for part (b) then it’s after the sum of up to 31 days … so that would mean taking
Sn = a1(1 – r^n) / (1 – r)
Sn = (2^31 – 1)/100 = $21,474,836.47
I hope that helps get you moving in the right direction! Feel free to reach out if you have any additional questions beyond that :)