Problem

Source: 2016 239 S4

Tags: number theory, Sequence



The sequences of natural numbers $p_n$ and $q_n$ are given such that $$p_1 = 1,\ q_1 = 1,\ p_{n + 1} = 2q_n^2-p_n^2,\ q_{n + 1} = 2q_n^2+p_n^2 $$Prove that $p_n$ and $q_m$ are coprime for any m and n.