|
|
A370532
|
|
Integers m > 0 such that m^m and m^(m^m) have the same rightmost m digits.
|
|
1
|
|
|
1, 5, 10, 20, 30, 40, 50, 60, 70, 80, 90, 100, 110, 120, 130, 140, 150, 160, 170, 180, 190, 200, 210, 220, 230, 240, 250, 260, 270, 280, 290, 300, 310, 320, 330, 340, 350, 360, 370, 380, 390, 400, 410, 420, 430, 440, 450, 460, 470, 480, 490, 500, 510, 520, 530
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,2
|
|
COMMENTS
|
This sequence consists of the positive integers m such that m^m == m^(m^m) (mod 10^m).
All multiples of 10 are terms, since then m^m == m^(m^m) == 0 (mod 10^m).
5 is the only term m > 1 not a multiple of 10 (5^5 = 3125 and 5^(5^5) = ...03125). A compact proof of this fact has been published on Mathematics Stack Exchange by John Omelian (see Links).
|
|
LINKS
|
|
|
FORMULA
|
a(n) = 10*(n - 2) for any n > 2.
G.f.: x*(1 + 3*x + x^2 + 5*x^3)/(1 - x)^2.
E.g.f.: 20 + 10*exp(x)*(x - 2) + 11*x + 5*x^2/2. (End)
|
|
EXAMPLE
|
20 is a term since 20^20 == 0 (mod 10^20) and also 20^(20^20) == 0 (mod 10^20).
|
|
MATHEMATICA
|
Join[{1, 5}, 10*Range[100]] (* Paolo Xausa, Mar 15 2024 *)
|
|
PROG
|
(Python)
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn,easy,base
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|