How do you prove that, for each positive integer n, 2018n can be written as sum of three nonzero perfect square? I know that you have to use Legendre's three square formula but I can't get further from that point on.
valid question