login
This site is supported by donations 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

Table of n, a(n) for n=2..101.

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

Cf. A070750, A039702.

Sequence in context: A063747 * A158387 A265643 A008836 A087960 A164660

Adjacent sequences:  A077005 A077006 A077007 * A077009 A077010 A077011

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 | Recent | More pages
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified November 16 22:43 EST 2018. Contains 317275 sequences. (Running on oeis4.)