Problem

Source: Romanian JBMO TST 2001

Tags: modular arithmetic, number theory proposed, number theory



Let $n$ be a non-negative integer. Find all non-negative integers $a,b,c,d$ such that \[a^2+b^2+c^2+d^2=7\cdot 4^n\]