-2

$S = 2^2 + 4^2 + 8^2 + ... ... + 256^2 + 512^2$, then what is the second digit from the end of $S$ ?

Adnan Toky
  • 193
  • 7
  • 2
    Welcome to stackexchange. Please [edit] the question to show us what you tried and where you are stuck. Then perhaps we can help. Have you worked out the answer for the first few smaller problems like this? – Ethan Bolker Jan 12 '19 at 15:43
  • 1
    The sum is clearly less than $9\cdot 1000^2$ which has only $7$ digits, so what does "tenth place digit" even mean here? ... ooh, do you mean the "tens digit", i.e. the second-to-last digit? – hmakholm left over Monica Jan 12 '19 at 15:46
  • Yes, I meant tens digit. Second digit from the last. – Adnan Toky Jan 12 '19 at 15:52

2 Answers2

2

Your sum is $$ (2^1)^2 + (2^2)^2 + \cdots + (2^8)^2 + (2^9)^2 = 4^1 + 4^2 + \cdots + 4^8 + 4^9 $$ which is a finite geometric series that we can throw the standard formula at to get $$ 4\cdot \frac{4^9-1}{3} $$ To evaluate this modulo $100$, use that $3^{-1} \equiv 67 \pmod{100}$ and $4^9 = (2^9)^2 = 512^2 \equiv 12^2 \pmod{100}$, so you're looking for the tens digit of $$ 4\cdot(12^2-1)\cdot 67 $$

0

Hint:

Let us find $$R=\dfrac{4^9-1}3\pmod{\dfrac{100}4}$$

$4^9=2^{18},2^9=512\equiv12\pmod{25},2^{18}\equiv12^2\equiv-6$

$3^{-1}\equiv-8\pmod{25}$

$R\equiv(-6-1)(-8)\equiv6\pmod{25}$

$4R\equiv6\cdot4\pmod{25\cdot4}$