Find all non-negative integer numbers $n$ for which there exists integers $a$ and $b$ such that $n^2=a+b$ and $n^3=a^2+b^2.$
Problem
Source: Dutch BxMO/EGMO Team Selection Test 2014 P1
Tags: number theory proposed, number theory
Source: Dutch BxMO/EGMO Team Selection Test 2014 P1
Tags: number theory proposed, number theory
Find all non-negative integer numbers $n$ for which there exists integers $a$ and $b$ such that $n^2=a+b$ and $n^3=a^2+b^2.$