MathDB
Virtual numbers

Source: Centroamerican 2020, problem 1

October 28, 2020
number theoryDigits

Problem Statement

A four-digit positive integer is called virtual if it has the form abab\overline{abab}, where aa and bb are digits and a0a \neq 0. For example 2020, 2121 and 2222 are virtual numbers, while 2002 and 0202 are not. Find all virtual numbers of the form n2+1n^2+1, for some positive integer nn.