OFFSET
1,2
LINKS
Antti Karttunen, Table of n, a(n) for n = 1..10000
EXAMPLE
15 = 3*5, the next larger prime is 7, so 15 mod 7 = 1, and therefore 15 is included as a term.
MATHEMATICA
a117336[n_]:=NextPrime[FactorInteger[n][[-1, 1]]]; okQ[k_]:=Mod[k, a117336[k]]==1; Select[Range[1887], okQ] (* James C. McMahon, Jan 27 2026 *)
PROG
CROSSREFS
KEYWORD
nonn
AUTHOR
Antti Karttunen, Jan 27 2026
STATUS
approved
