Find the remainder when $\sum_{n=1}^{2015}{n^2\times2^n}$is divided by 23.
I am completely stuck at this to even start , here's the samll thing that I have noticed . When $2^{11}$ is divided by 23 , the remainder is $1$ , so $2^{11k+r}$ is equivalent to $2^r$ (mod 23) , for any natural number $k$. Apart from this nothing useful thing came to my mind .
Could someone please help me to find the remainder ?
Thanks !
With $k=1,2,\cdots,23$ one has $n^22^n\equiv(23m+k)^22^{23m+k}\equiv k^22^{m+k}\pmod{23}$ and since $2015=87\cdot23+14$ you have $$\sum_1^{23}n^22^n\equiv\sum_1^{23}k^22^k=A\pmod{23}\\\sum_{24}^{46}n^22^n\equiv\sum_1^{23}k^22^{k+1}=2A\pmod{23}\\..................................\\..................................\\\sum_{86*23+1}^{87*23}n^22^n\equiv\sum_1^{23}k^22^{86+k}=2^{86}A\pmod{23}$$ Then$$\sum_1^{2001}n^22^2\equiv(1+2+2^3+\cdots+2^{86})A=(2^{87}-1)A\pmod{23}$$ The actual calculation of this is not difficult modulo $23$ and so over the last $14$ terms in play.Naturally you can apply the little known formula given by Alexey Burdin above but here it is about making efforts not to apply that formula.
►I want to verify this way the answer given by the formula above which is $5$.
We have $$A\equiv6\pmod{23}\\2^{87}-1\equiv{11}\pmod{23}\\(2^{87}-1)A\equiv{20}\pmod{23}$$ The remaining $14$ terms partially add up the following module $23$ residus: $$18+1+14+21=8\pmod{23}$$ therefore $$20+8=28\equiv\color{red}5\pmod{23}$$
Indeed, the answers coincide.