Prove that if $q+q^{'} =r +r^{'}$, then $2n$ is a perfect square.
Source: Caucasus MO 2023
July 16, 2023
number theory
Problem Statement
Let and be positive integers, . Let divided by have partial quotient and remainder (so that , where ). Let divided by have partial quotient and remainder .
a) It appears that . Find all possible values of .
b) Prove that if , then is a perfect square.