OFFSET
1,1
LINKS
Antti Karttunen, Table of n, a(n) for n = 1..4096
PROG
(Python)
from sympy import jacobi_symbol as J
def a112046(n):
i=1
while True:
if J(i, 2*n + 1)!=1: return i
else: i+=1
def a(n): return a112046(2*n) - a112046(2*n - 1)
print([a(n) for n in range(1, 201) if a(n)!=0]) # Indranil Ghosh, May 25 2017
CROSSREFS
KEYWORD
sign
AUTHOR
Antti Karttunen, Aug 27 2005
STATUS
approved