Problem

Source: Macedonia JBMO TST 2017, Problem 1

Tags: number theory, prime numbers, Divisibility



Let $p$ be a prime number such that $3p+10$ is a sum of squares of six consecutive positive integers. Prove that $p-7$ is divisible by $36$.