OFFSET
1,2
COMMENTS
Observations: 11^n where n >= 0 is in the sequence. All a(n) > 1 have 11 and/or 23 as factors. - Delbert L. Johnson, May 12 2024
MAPLE
# Maple code from N. J. A. Sloane, Jan 02 2021
# To test if n is a member:
f:=proc(n) local s, k;
s:=0;
for k from 1 to n do s:=(23*s+k) mod n; od;
if s=0 then 1 else -1; fi;
end;
# To compute the terms up to 10000:
ans:=[]; for n from 1 to 10000 do if f(n)=1 then ans:=[op(ans), n]; fi; od: ans;
CROSSREFS
KEYWORD
nonn,more
AUTHOR
EXTENSIONS
More terms from Kok Seng Chua (chuaks(AT)ihpc.nus.edu.sg), Jan 30 2001
a(21)-a(31) from Delbert L. Johnson, May 12 2024
STATUS
approved