login

Reminder: The OEIS is hiring a new managing editor, and the application deadline is January 26.

Legendre symbol (n,131071).
2

%I #9 Jan 13 2023 10:15:35

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

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

%N Legendre symbol (n,131071).

%C 131071 is the 6th Mersenne prime, A000668(6).

%C See row 12251 in triangle A226520, A000040(12251) = 131071. - _Reinhard Zumkeller_, Feb 02 2014

%H A. Karttunen, <a href="/A165476/b165476.txt">Table of n, a(n) for n = 0..131071</a>

%H Wikipedia, <a href="http://en.wikipedia.org/wiki/Legendre_symbol">Legendre symbol</a>.

%t a[n_] := JacobiSymbol[n, 2^17 - 1];

%t Table[a[n], {n, 0, 100}] (* _Jean-François Alcover_, Jan 13 2023 *)

%o (Haskell)

%o a165476 = flip legendreSymbol 131071

%o -- Where the function legendreSymbol is defined in A097343.

%o -- _Reinhard Zumkeller_, Feb 02 2014

%Y Partial sums: A165477.

%Y Cf. A097343.

%K sign,mult

%O 0,1

%A _Antti Karttunen_, Sep 21 2009