OFFSET
1,1
COMMENTS
The asymptotic density of this sequence is 1/6 (by Dirichlet's theorem). - Amiram Eldar, Mar 01 2021
FORMULA
a(n) ~ 6*n. - Charles R Greathouse IV, Sep 20 2016 [Corrected by Amiram Eldar, Mar 01 2021]
EXAMPLE
a(1) = 10 because prime(10) = 29 and 29 == 1 (mod 7).
MATHEMATICA
Select[Range[500], Mod[Prime[#], 7] == 1 &]
PROG
(Magma) [n: n in [1..500] | NthPrime(n) mod 7 eq 1];
(PARI) lista(nn) = for(n=1, nn, if(Mod(prime(n), 7)==1, print1(n, ", "))); \\ Altug Alkan, Mar 04 2016
CROSSREFS
KEYWORD
nonn
AUTHOR
Vincenzo Librandi, Mar 04 2016
STATUS
approved