Problem

Source: Baltic Way 2016, Problem 4

Tags: number theory



Let $n$ be a positive integer and let $a, b, c, d$ be integers such that $n | a + b + c + d$ and $n | a^2 + b^2 + c^2 + d^2. $ Show that $$n | a^4 + b^4 + c^4 + d^4 + 4abcd.$$