Answer on Question #84836 – Math – Combinatorics | Number Theory Question
f(y)=y repeated y times, for example f(3)=333,f(5)=55555.
then a=f(2001)+f(2002)+f(2003)+f(2004)+f(2005)+… f(2012)+f(2013)+f(2014)+f(2015).
what is the remainder upon division of a by 3?
Solution
If x has decimal expansion x1x2…xn, then
x(mod3)=x1+x2+…+xn(mod3)
Indeed,
x=10k1x1+10k2x2+…+xn=(10k1−1)x1+(10k2−1)x2+…+(10kn−1−1)xn−1+(x1+x2+…+xn)
Since 10k−1 is divisible by 3 for any k,
x(mod3)=x1+x2+…+xn(mod3)
This means that f(y)(mod3)=y+y+…+y=y∗y=y2(mod3)
(here there are y summands)
Then a(mod3)=20012+20022+20032+…+20152(mod3)
We have:
2001=3∗667,
from which
2001=0(mod3),20012=02(mod3),20022=12(mod3),20032=22(mod3),…
Then
a(mod3)==02+12+22+02+12+22+02+12+22+02+12+22+02+12+22(mod3)==(02+12+22)⋅5(mod3)=25(mod3)=1(mod3)Answer: 1.
Answer provided by https://www.AssignmentExpert.com