gcd(n, (n-m)/gcd(n,m)) = 1 for all m < n
Source: 2012 Indonesia Round 2.5 TST 1 Problem 4
May 10, 2012
number theorygreatest common divisormodular arithmeticnumber theory proposed
Problem Statement
Determine all integer such that
for all integer .