2023 CEMC Fermat Problems/Problem 5
Problem
Ava's machine takes four-digit positive integers as input. When the four-digit integer is input, the machine outputs the integer
. For example, when the input is
, the output is
. When the input is
, the output is
Solution
We have ,
,
, and
. Plugging this into the machine, we have:
~anabel.disher