OFFSET
1,1
COMMENTS
Also, only entries p=1 (mod 4) of the sequence are squares mod 7 (from the quadratic reciprocity law). - Lekraj Beedassy, Jul 21 2004
2 and 7 together with primes congruent to +/- {1, 3, 9} mod 28. - Eric M. Schmidt, Jan 24 2014
Least numbers m such that 7+m*a(n) is a square: 1, 3, 6, 3, 1, 3, 2, 6, 9, 6, 3, 6, 2, 9, 3, 1, ... - Zak Seidov, Sep 25 2014
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 1..1000
MATHEMATICA
Select[Prime[Range[100]], JacobiSymbol[7, #] != -1 &] (* Vincenzo Librandi, Sep 07 2012 *)
Union[{2, 7}, Select[Flatten[Table[{1, 3, 9, 19, 25, 27}+28*k, {k, 0, 10}]], PrimeQ]](* Zak Seidov, Sep 25 2014 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
STATUS
approved