Given,
2⋅3101+22⋅391+⋯+210⋅31=210⋅310K
Multiplying both sides by
210⋅310
we get
K=29+28⋅3+27⋅32+⋯+39
Hence,
K=∑r=0929−r3r
This is a GP with first term
29
and common ratio
23
Therefore,
K=29⋅23−1(23)10−1
=29⋅21210310−1
=210⋅210310−210
=310−210
Now, modulo 6,
310≡3(mod6)
and
210≡4(mod6)
Hence,
K≡3−4≡−1≡5(mod6)
Therefore, the remainder when K is divided by 6 is 5.