Problem

Source: Finland 2014, Problem 4

Tags: number theory, point, circle, primes



The radius $r$ of a circle with center at the origin is an odd integer. There is a point ($p^m, q^n$) on the circle, with $p,q$ prime numbers and $m,n$ positive integers. Determine $r$.