S = 1 + 2 + 22 + 23 + ..... + 299
2S = 2 + 22 + 23 + ..... + 299 + 2100
2S - S = (2 + 22 + 23 + ..... + 299 + 2100) - (1 + 2 + 22 + 23 + ..... + 299)
S = 2100 - 1
S + 1 = 2100 - 1 + 1 = 4n + 2
=> 2100 = 4n + 2
=> (22)50 = 4n + 2
=> 450 = 4n + 2
=> n + 2 =50
=> n = 48