OFFSET
1,2
EXAMPLE
9 is a term because x^(9+1) == 9 (mod 9+1) for x = 3 and x = 7, i.e., 3^10 = 59049 == 9 (mod 10) and 7^10 = 282475249 == 9 (mod 10).
MATHEMATICA
Select[Range[1, 110], With[{m = #}, AnyTrue[Range[1, m + 1], PowerMod[#, m + 1, m + 1] == m &]] &] (* Robert P. P. McKone, May 14 2024 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Juri-Stepan Gerasimov, May 12 2024
EXTENSIONS
Terms corrected by Robert P. P. McKone, May 14 2024
STATUS
approved