Number theoryDifficulty 4.8Prove itHarvard-MIT Math Tournament · United States
p and q are primes such that the numbers p+q and p+7q are both squares. Find the value of p.
This one wants a proof. Work it on paper, then read the official solution and mark yourself. Be honest about it: the record is only any use to you if it is.
Writing x2=p+q, y2=p+7q, we have 6q=y2−x2=(y−x)(y+x). Since 6q is even, one of the factors y−x, y+x is even, and then the other is as well; thus 6q is divisible by 4⇒q is even ⇒q=2 and 6q=12. We may assume x,y are both taken to be positive; then we must have y−x=2, y+x=6⇒x=2, so p+2=22=4⇒p=2 also.
Source: MathNet,
licensed CC-BY-4.0.
Statement reproduced verbatim; metadata (topic, difficulty, ordering) added by this project.