Find the number of triples of nonnegative integers $(a, b, c)$ satisfying $a + b + c = 300$ and \[ a^2 b + a^2 c + b^2 a + b^2 c + c^2 a + c^2 b = 6{,}000{,}000. \]
With $p=a+b+c=300$, $q=ab+bc+ca$, $r=abc$: the sum is $pq-3r=6{,}000{,}000$, so $100q-r=2{,}000{,}000$.
Then $(100-a)(100-b)(100-c)=10^6-10^4p+100q-r=10^6-3\cdot10^6+2\cdot10^6=0$.
So some variable is $100$ and the other two sum to $200$. By inclusion-exclusion the number of triples is $3\cdot201-3+1=601$. The answer is $\boxed{601}$.
Find the number of triples of nonnegative integers $(a, b, c)$ satisfying $a + b + c = 360$ and \[ a^2 b + a^2 c + b^2 a + b^2 c + c^2 a + c^2 b = 10{,}368{,}000. \]