OFFSET
1,1
LINKS
G. C. Greubel, Table of n, a(n) for n = 1..10000
EXAMPLE
2 is a term because prime(2+1) mod (prime(2+2) - prime(2)) = 5 mod 4 = 1.
MATHEMATICA
fQ[n_] := Mod[Prime[n+1], Prime[n+2] - Prime[n]] == 1; Select[ Range@ 250, fQ]
PROG
(PARI) isok(n) = prime(n+1) % (prime(n+2) - prime(n)) == 1; \\ Michel Marcus, Jan 31 2019
CROSSREFS
KEYWORD
nonn
AUTHOR
Juri-Stepan Gerasimov, Jan 01 2011
STATUS
approved