MathDB
A classic NT but it can be generalised

Source: Greece National Olympiad 2023, Problem 2

February 19, 2023
number theory

Problem Statement

Find all positive integers NN that are perfect squares and their decimal representation consists of nn digits equal to 2 and one digit equal to 5, where nn takes positive integer values.