Question #84836

f(y)=y repeated y times,for example f(3)=333,f(5)=55555.
then a=f(2001)+f(2002)+f(2003)+(2004)+(2005)+.......(2012)+(2013)+(2014)+(2015).
what is the remainder upon division of a by 3 ?

Expert's answer

Answer on Question #84836 – Math – Combinatorics | Number Theory Question

f(y)=yf(y) = y repeated yy times, for example f(3)=333,f(5)=55555f(3) = 333, f(5) = 55555.

then a=f(2001)+f(2002)+f(2003)+f(2004)+f(2005)+a = f(2001) + f(2002) + f(2003) + f(2004) + f(2005) + \ldots f(2012)+f(2013)+f(2014)+f(2015)f(2012) + f(2013) + f(2014) + f(2015).

what is the remainder upon division of aa by 3?

Solution

If xx has decimal expansion x1x2xnx_1 x_2 \ldots x_n, then


x(mod3)=x1+x2++xn(mod3)x (\mathrm{mod} 3) = x_1 + x_2 + \ldots + x_n (\mathrm{mod} 3)


Indeed,


x=10k1x1+10k2x2++xn=(10k11)x1+(10k21)x2++(10kn11)xn1+(x1+x2++xn)\begin{array}{l} x = 10^{k_1} x_1 + 10^{k_2} x_2 + \ldots + x_n \\ = (10^{k_1} - 1) x_1 + (10^{k_2} - 1) x_2 + \ldots + (10^{k_{n-1}} - 1) x_{n-1} + (x_1 + x_2 + \ldots + x_n) \end{array}


Since 10k110^k - 1 is divisible by 3 for any kk,


x(mod3)=x1+x2++xn(mod3)x (\mathrm{mod} 3) = x_1 + x_2 + \ldots + x_n (\mathrm{mod} 3)


This means that f(y)(mod3)=y+y++y=yy=y2(mod3)f(y)(\mathrm{mod}3) = y + y + \ldots + y = y * y = y^2(\mathrm{mod}3)

(here there are yy summands)

Then a(mod3)=20012+20022+20032++20152(mod3)a(\mathrm{mod}3) = 2001^2 + 2002^2 + 2003^2 + \ldots + 2015^2 (\mathrm{mod}3)

We have:


2001=3667,2001 = 3 * 667,


from which


2001=0(mod3),2001 = 0 (\mathrm{mod} 3),20012=02(mod3),20022=12(mod3),20032=22(mod3),2001^2 = 0^2 (\mathrm{mod} 3), 2002^2 = 1^2 (\mathrm{mod} 3), 2003^2 = 2^2 (\mathrm{mod} 3), \ldots


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)\begin{array}{l} a (\mathrm{mod} 3) = \\ = 0^2 + 1^2 + 2^2 + 0^2 + 1^2 + 2^2 + 0^2 + 1^2 + 2^2 + 0^2 + 1^2 + 2^2 + 0^2 + 1^2 + 2^2 (\mathrm{mod} 3) = \\ = (0^2 + 1^2 + 2^2) \cdot 5 (\mathrm{mod} 3) = 25 (\mathrm{mod} 3) = 1 (\mathrm{mod} 3) \end{array}

Answer: 1.

Answer provided by https://www.AssignmentExpert.com

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

LATEST TUTORIALS
APPROVED BY CLIENTS