MathDB
A=\{7,12\}\cup\{8m+3\mid m\in\mathbb{N}\cup\{16m+4\mid m\in\mathbb{N}\}

Source: Serbia JBMO TST 2017

October 6, 2023
number theory

Problem Statement

Positive integer qq is the kk{}-successor of positive integer nn{} if there exists a positive integer pp{} such that n+p2=q2n+p^2=q^2. Let AA{} be the set of all positive integers nn{} that have at least a kk{}-successor, but every kk{}-successor does not have kk{}-successors of its own. Prove that A={7,12}{8m+3mN}{16m+4mN}.A=\{7,12\}\cup\{8m+3\mid m\in\mathbb{N}\}\cup\{16m+4\mid m\in\mathbb{N}\}.