Problem

Source: Greece National Olympiad 2023, Problem 2

Tags: number theory



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