MathDB
n^k starts/ends with same digit

Source: VJIMC 2012 1.4

May 31, 2021
number theoryDigits

Problem Statement

Find all positive integers nn for which there exists a positive integer kk such that the decimal representation of nkn^k starts and ends with the same digit.