login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A077008 Legendre symbol (-1,p) where p is the n-th prime. 0
-1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, -1, -1, 1, -1, 1, -1, -1, 1, -1, -1, 1, 1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, -1, 1, -1, -1, 1, -1, 1, -1, 1, 1, -1, -1, -1, -1, 1, 1, -1, 1, -1, 1, -1, 1, -1, 1, 1, -1, 1, -1, -1, 1, 1, -1, 1, -1, 1, 1, -1, -1, 1, -1, -1, 1, 1, 1, 1, -1, 1, -1, 1, -1, -1, 1, 1, 1, -1, -1, -1, -1, -1, -1, -1, 1, 1, -1, 1, -1 (list; graph; refs; listen; history; text; internal format)
OFFSET
2,1
COMMENTS
Same as A070750 (where additionally a(1)=0 is included). - Joerg Arndt, Apr 21 2016
LINKS
FORMULA
a(n) = A070750(n). - Joerg Arndt, Apr 21 2016
MATHEMATICA
p = Table[Prime[i], {i, 2, 101}]; Table[JacobiSymbol[p[[j]] - 1, p[[j]]], {j, 1, 100}]
a[n_] := (-1)^((Prime[n]-1)/2); Table[a[n], {n, 2, 101}] (* Jean-François Alcover, Apr 20 2016 *)
PROG
(PARI) a(n)=kronecker(-1, prime(n)) \\ Charles R Greathouse IV, Jun 13 2013
(PARI) a(n)=if(prime(n)%4==1, 1, -1) \\ Charles R Greathouse IV, Jun 13 2013
CROSSREFS
Sequence in context: A309873 A162511 A157895 * A158387 A265643 A283131
KEYWORD
sign,easy
AUTHOR
Joseph L. Pe, Nov 28 2002
EXTENSIONS
Replaced "(p-1,p)" by "(-1,p)" in name, Joerg Arndt, Apr 21 2016
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified March 19 03:21 EDT 2024. Contains 370952 sequences. (Running on oeis4.)