OFFSET
1,1
COMMENTS
Based on problem by G. L. Honaker, Jr.
A subsequence of A073465. - Ivan N. Ianakiev, Aug 06 2019
LINKS
Giovanni Resta, Table of n, a(n) for n = 1..94
FORMULA
A087611(a(n)) = 0. - Reinhard Zumkeller, Sep 11 2003
EXAMPLE
13 is the 6th prime and 13 == 1 mod 6.
MATHEMATICA
f[p_, n_]:=Mod[p, n]==0; lst={}; Do[p=Prime[n]; If[f[p-1, n], AppendTo[lst, p]], {n, 10!}]; lst (* Vladimir Joseph Stephan Orlovsky, Dec 08 2009 *)
PROG
(PARI) lista(nn) = forprime(p=1, nn, if (Mod(p, primepi(p)) == 1, print1(p, ", "))); \\ Michel Marcus, Jan 08 2015; Aug 06 2019
CROSSREFS
KEYWORD
nonn
AUTHOR
EXTENSIONS
More terms from Zak Seidov, Feb 19 2015
Terms a(33)-a(37) sorted into correct order by Giovanni Resta, Feb 23 2020
STATUS
approved