Problem

Source: 2023 Singapore MO Round 2 Senior Q2 / Junior Q5

Tags: number theory, Diophantine equation



Find all positive integers $k$ such that there exists positive integers $a, b$ such that \[a^2+4=(k^2-4)b^2.\]