OFFSET
1,2
COMMENTS
From Jianing Song, Nov 17 2024: (Start)
Includes all primes.
For a prime p and e with (p,e) != (2,1), p^e is a term if and only if e+1 is an order-e base-p Wieferich prime, i.e., (e+1)^(p-1) == 1 (mod p^e). For example, p^2 is a term if and only if p is in A014127.
Are there other square terms than 1, 36, 121, and 1006003^2? (End)
LINKS
Amiram Eldar, Table of n, a(n) for n = 1..10000
EXAMPLE
6 is in this sequence because d(6) = 4 and 4^6 = 2^12 = 4096 == 4 (mod 6).
MATHEMATICA
Select[Range[300], PowerMod[DivisorSigma[0, #], #, #] == Mod[DivisorSigma[0, #], #] &] (* Stefano Spezia, Oct 20 2024 *)
PROG
(Magma) [k: k in [1..300] | #Divisors(k)^k mod k eq #Divisors(k) mod k];
(PARI) isA377201(k) = my(d = numdiv(k)); Mod(d, k)^k == d
CROSSREFS
KEYWORD
nonn,easy,changed
AUTHOR
Juri-Stepan Gerasimov, Oct 19 2024
EXTENSIONS
Terms 1, 2 prepended by Jianing Song, Nov 17 2024
STATUS
approved