We look carefully at the given series
12+2⋅22+32+2⋅42+52+2⋅62+…
and notice a very clear pattern: for every odd natural number its square appears once, while for every even natural number its square appears twice. Thus, for the general term with index n we may write
term(n)={1⋅n2,2⋅n2,n odd,n even.
Let us denote by cn this coefficient (1 for odd, 2 for even), so that the partial sum of the first k terms is
S(k)=∑n=1kcnn2.
We are told that
A=S(20),B=S(40).
To evaluate these sums we separate the odd and even indices.
For any positive integer k we write
S(k)=∑n=1n oddkn2+2∑n=1n evenkn2.
Now we change the running index:
- Put n=2m−1 for the odds. When n runs through the first k integers, m runs from 1 to ⌈2k⌉.
- Put n=2m for the evens. Then m runs from 1 to ⌊2k⌋.
Hence, with o=⌈2k⌉ (number of odds) and e=⌊2k⌋ (number of evens), we get
S(k)=∑m=1o(2m−1)2+2∑m=1e(2m)2.
We require explicit formulas for the two kinds of sums. We therefore recall the standard identities
1. Sum of first n natural numbers:
∑m=1nm=2n(n+1).
2. Sum of squares of first n natural numbers:
∑m=1nm2=6n(n+1)(2n+1).
Using these two, we evaluate:
∑m=1n(2m)2=4∑m=1nm2=4⋅6n(n+1)(2n+1).
For the odd squares we expand
(2m−1)2=4m2−4m+1,
so that
∑m=1n(2m−1)2=4∑m=1nm2−4∑m=1nm+∑m=1n1=4(6n(n+1)(2n+1))−4(2n(n+1))+n.
We are now ready to compute A and B explicitly.
Computation of A=S(20)
The first 20 integers comprise 10 odds and 10 evens, so o=e=10.
First, for n=10 we have
∑m=110m2=610⋅11⋅21=385,
∑m=110m=210⋅11=55.
Therefore
∑m=110(2m−1)2=4(385)−4(55)+10=1540−220+10=1330,
and
2∑m=110(2m)2=2[4∑m=110m2]=2(4⋅385)=2(1540)=3080.
Adding the two pieces we find
A=1330+3080=4410.
Computation of B=S(40)
For the first 40 integers we have 20 odds and 20 evens, so o=e=20.
For n=20 we obtain
∑m=120m2=620⋅21⋅41=2870,
∑m=120m=220⋅21=210.
Thus
∑m=120(2m−1)2=4(2870)−4(210)+20=11480−840+20=10660,
and
2∑m=120(2m)2=2[4∑m=120m2]=2(4⋅2870)=2(11480)=22960.
Whence
B=10660+22960=33620.
Finding B−2A
We now calculate
2A=2(4410)=8820,
so
B−2A=33620−8820=24800.
The statement of the problem tells us that
B−2A=100λ,
which gives directly
λ=10024800=248.
Hence, the correct answer is Option C.