MathDB
N and N^2 both end in the same four digits

Source: 2019 Dürer Math Competition Finals Day2 E+8 https://artofproblemsolving.com/community/c1621835_2019_

January 5, 2022
number theoryDigitslast digits

Problem Statement

Let NN be a positive integer such that NN and N2N^2 both end in the same four digits abcd\overline{abcd}, where a0a \ne 0. What is the four-digit number abcd\overline{abcd}?