Let f(x)=(1+x+x2)10=∑r=020arxr
The sum of odd coefficients: Sodd =a1+a3+a5+⋯
+a19
Subtracting 11a2 from above will give the answer
Sodd =2f(1)−f(−1) f(1)=(1+1+1)10=310
f(−1)=(1−1+1)10=(1)10=1
Sodd =∑odd rar=2310−1
Now for a2
1+x+x2=1−x1−x3⇒f(x)=(1−x1−x3)=(1−x)10(1−x3)10
Now use: (1−x3)10=∑x=010(−1)k(k10)x3k
(1−x)−10=∑r=0∞(9r+9)xr
So f(x)=(∑k=010(−1)k(k10)x3k)⋅(∑r=0∞(9r+9)xr)
Only the term with x0 from the first sum (i.e., k=0 ) can contribute to x2, since all other k≥1 gives
x3k≥ x3
From (1−x3)10 : the x0 term is (010)=1
From (1−x)−10 : the coefficient of x2 is (92+9)=(911)=55
Hence, a2=1⋅55=55
Now, Sodd −11a2=2310−1−11.55=121k
310=59049
So: S=259049−1−605=259048−605
=29524−605=28919
So: 121k=28919⇒k=12128919=239