It might depend on when the interest is paid. Is interest paid at the start of each period, on 1 January, or is it paid at the end of each period, on 31 December?
Working?
The 1st $10000 is invested at 10% p.a. for 20 years.
The 2nd $10000 is invested at 10% p.a. for 19 years.
The 3rd $10000 is invested at 10% p.a. for 18 years.
The final $10000 is invested at 10% for 1 year.
.: A1 = 10000(1 + 0.10)20 = 10000(1.1)20
.: A2 = 10000(1 + 0.10)19 = 10000(1.1)19
.: A3 = 10000(1 + 0.10)18 = 10000(1.1)18
.: A20 = 10000(1 + 0.10)1 = 10000(1.1)1
.: Total = A1 + A2 + A3 + ... + A20
= 10000(1.1)20 + 10000(1.1)19 + 10000(1.1)18 + ... + 10000(1.1)1
= 10000(1.11 + 1.12 + 1.13 + ... + 1.120)
= 10000 x [ 1.1 (1.120 – 1) / (1.1 – 1) ]
= 10000 x 63.00249944
= $630 024.99