MathDB
4 digits number using only 2 disticnt digits problem

Source: Austrian Polish 1984 APMC

April 30, 2020
GCDgreatest common divisornumber theory

Problem Statement

Let AA be the set of four-digit natural numbers having exactly two distinct digits, none of which is zero. Interchanging the two digits of nAn\in A yields a number f(n)Af (n) \in A (for instance, f(3111)=1333f (3111) = 1333). Find those nAn \in A with n>f(n)n > f (n) for which gcd(n,f(n))gcd(n, f (n)) is the largest possible.