What you did upto the last but one step is perfect, but your showing the contradiction is not that correct, as $\cos (\frac{\pi}{2})=0$ is true only...
This is because the least number of digits required to get a digit sum of $2016$ is $\frac{2016}{9}=224$. But since a string consisting of only $9$s...