A371048 Numbers formed by the rightmost decimal digits of n that are the same as those n^n, where -1 indicates that n <> n^n (mod 10).
0, 1, -1, -1, -1, 5, 6, -1, -1, 9, 0, 11, -1, 3, -1, 5, 16, 7, -1, 9, 0, 21, -1, -1, -1, 25, 6, -1, -1, 9, 0, 31, -1, 3, -1, 5, 36, 7, -1, 9, 0, 41, -1, -1, -1, 5, 6, -1, -1, 49, 0, 51, -1, 3, -1, 5, 56, 57, -1, 9, 0, 61, -1, -1, 5, 6, -1, -1, 9, 0, 71, -1, 3
Offset: 0
Examples
For n = 51, 51^51 = 1219211305094648479473193481872927834667576992593770717189298225284399541977208231315051 and 51^51 == 5051 (mod 10^4), so there might be three common final digits by including a leading 0 that should instead be disregarded. Consequently, a(51) = 51.
Links
- Jorge Jiménez Urroz and José Luis Andrés Yebra, On the Equation a^x == x (mod b^n), Journal of Integer Sequences, Article 09.8.8, 2009.
- Marco Ripà, Congruence speed of tetration bases ending with 0, arXiv:2402.07929 [math.NT], 2024.
Formula
If n <> 2,4,8 (mod 10) or n <> 3,7 (mod 20), then a(n) = n (mod 10^k), where k is such that n == n^n (mod 10^k) and n <> n^n (mod 10^(k+1)), whereas a(n) = -1 otherwise.
Comments