Suppose that $n$ is a natural number such that $\displaystyle \bigg|i+2i^2+3i^3+\cdots \cdots +ni^n\bigg|=18\sqrt{2}$. Find the value of $n$.
What I try : Let $\displaystyle S =i+2i^2+3i^3+\cdots +ni^n\cdots (1)$
Then $\displaystyle iS =i^2+2i^3+3i^4+\cdots +ni^{n+1}\cdots (2)$
So $\displaystyle S(1-i)=i+i^2+i^3+\cdots +i^n-ni^{n+1}$
$\displaystyle S =\frac{i-i^{n+1}}{(1-i)^2}-\frac{ni^{n+1}}{1-i}=\frac{i^n-1}{2}-\frac{ni^{n+1}(1+i)}{2}$
So we have $\displaystyle \bigg|i^n-ni^{n+1}(1+i)\bigg|=36\sqrt{2}$
How do i find value of $n$ , please help me, Thanks