login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A244513
Legendre symbol (prime(n), prime(n+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
OFFSET
1
LINKS
Hamdi Murat Yildirim, Table of n, a(n) for n = 1..1000
PROG
(Sage)
for i in range(1, 10000):
print(legendre_symbol(nth_prime(i), nth_prime(i+1)), ", ")
(PARI) a(n) = kronecker(prime(n), prime(n+1)); \\ Michel Marcus, Jun 29 2014
CROSSREFS
Sequence in context: A010555 A108784 A127252 * A376149 A020985 A034947
KEYWORD
sign
AUTHOR
STATUS
approved