login
A011629
Legendre symbol (n,239).
0
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
OFFSET
0,1
REFERENCES
G. H. Hardy and E. M. Wright, An Introduction to the Theory of Numbers. 3rd ed., Oxford Univ. Press, 1954, p. 68.
FORMULA
Recurrence relation is a(n) = -a(n-1) - a(n-2) - ... - a(n-237) - a(n-238) for n >= 238. - Charles R Greathouse IV, Oct 01 2019
PROG
(PARI) a(n)=kronecker(n, 239) \\ Charles R Greathouse IV, Oct 01 2019
CROSSREFS
Sequence in context: A011626 A011627 A011628 * A011630 A011631 A165591
KEYWORD
sign,mult,easy
AUTHOR
STATUS
approved