OFFSET
1,2
COMMENTS
This sequence is different from A074583.
LINKS
Seiichi Manyama, Table of n, a(n) for n = 1..10000
MATHEMATICA
q[n_] := Divisible[DivisorSum[n, #^# &] - 1, n]; Select[Range[260], q] (* Amiram Eldar, May 06 2021 *)
PROG
(PARI) isok(n) = sumdiv(n, d, Mod(d, n)^d)==1;
(Python)
from itertools import count, islice
from sympy import divisors
def A343983_gen(): # generator of terms
yield 1
for k in count(1):
if sum(pow(j, j, k) for j in divisors(k, generator=True)) % k == 1:
yield k
CROSSREFS
KEYWORD
nonn
AUTHOR
Seiichi Manyama, May 06 2021
STATUS
approved