Code:

0(0) 1000.00 100.00 1100.00
1(4) 100.00 90.68 1290.68
2(8) 100.00 106.39 1497.07
3(12) 100.00 123.41 1720.48
.....
11(44) 100.00 321.02 4315.36 **
12(48) 100.00 355.72 4771.08 **
13(52) .00 393.29 5164.37

Your results are correct: looks like what I show above.

** Example of period to period calculation: 4315.36(1.02^4) + 100 = 4771.08

OF COURSE, I prefer MY formula to yours(!):

A = 1000

P = 100

n = 13

i = 1.02^4 - 1

F = (A + P)[(1 + i)^n] + P[(1 + i)^n - 1]/i - P ; substitute above:

F = 5164.3729059596311476.....

Can be a bit simplified to:

F = [Aki + P(ki + k - i - 1)] / i where k = (1+i)^n