Edit MetaData
8 years, 6 months ago
8 years ago
Hi Peeyush,
If we take 1 and 7 as a set
Number of terms = 2+4+6......... ~5001
n(n+1) ~5001
70(71) = 4970
hence, in the end there will be 70 1's and 70 7's and 31 1's after that
Sum = 31(1)+(4970/2)(8) =19911
Hope that helps.
Thanks,
Varun.