login
Legendre symbol (n,239).
0

%I #8 Oct 01 2019 00:07:25

%S 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,

%T 1,1,1,1,1,-1,1,-1,-1,-1,1,-1,-1,-1,1,1,-1,-1,1,1,1,1,-1,-1,1,1,-1,-1,

%U 1,-1,1,1,1,-1,1,-1,1,1,1,-1,-1,1,1,-1,-1,1,-1,-1,-1,-1,1

%N Legendre symbol (n,239).

%D G. H. Hardy and E. M. Wright, An Introduction to the Theory of Numbers. 3rd ed., Oxford Univ. Press, 1954, p. 68.

%H <a href="/index/Rec#order_238">Index entries for linear recurrences with constant coefficients</a>, order 238.

%F 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

%o (PARI) a(n)=kronecker(n,239) \\ _Charles R Greathouse IV_, Oct 01 2019

%K sign,mult,easy

%O 0,1

%A _N. J. A. Sloane_.