Olympiad Maths Prep

Track / Stage 3 / 168 of 260 #168 of 2000

Problem 168

AMC 10/12, early questions
Number theory Difficulty 3.7 Prove it Junior Macedonian Mathematical Olympiad · North Macedonia

Let pp is a prime number and let 3p+103p+10 is the sum of the squares of six consecutive positive integers. Prove that 36p736|p-7.

This one wants a proof. Work it on paper, read the official solution, then mark yourself honestly — the ladder only means something if the record is true.

Official solution

From the conditions of the problem, we have that
3p+10=(n2)2+(n1)2+n2+(n+1)2+(n+2)2+(n+3)2=6n2+6n+19,3p+10=(n-2)^2+(n-1)^2+n^2+(n+1)^2+(n+2)^2+(n+3)^2=6n^2+6n+19,
so, we have that
3p=6n2+6n+9,3p=6n^2+6n+9,
and
p=2n2+2n+3=2n(n+1)+3.p=2n^2+2n+3=2n(n+1)+3.
If one of the numbers nn or n+1n+1 is divisible with 33, then we have a contradiction with the condition that pp is a prime number. So, n=3k+1n=3k+1. Then,
p=2(3k+1)(3k+1+1)+3=2(3k+1)(3k+2)+3=2(9k2+9k+2)+3=18k(k+1)+7. p=2(3k+1)(3k+1+1)+3=2(3k+1)(3k+2)+3=2(9k^2+9k+2)+3=18k(k+1)+7.
Since k(k+1)k(k+1) is an even number, we have that 36p736|p-7.

Source: MathNet, licensed CC-BY-4.0. Statement and solution reproduced as published; topic, difficulty and ordering added by this site.