Consider a four digit number $\overline{abcd}$ such that $$(\overline{ab})^2+(\overline{bc})^2+(\overline{cd})^2=\overline{abcd} $$ $\overline{ab}$, $\overline{bc}$ and $\overline{cd}$ are two digit numbers
What is this number ?
What I have tried is
$$(10a+b)^2+(10b+c)^2+(10c+d)^2=\overline{abcd} $$ then I used $(a+b)^2$ formula but this method didn't help.
I need mathematical solution
It's not a pretty answer, but here is a brute-force solution in Python