OFFSET
1,3
FORMULA
a(n) = A112046(n) - 1.
MATHEMATICA
a112046[n_]:=Block[{i=1}, While[JacobiSymbol[i, 2n + 1]==1, i++]; i]; Table[a112046[n] - 1, {n, 102}] (* Indranil Ghosh, May 24 2017 *)
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(n) - 1
print([a(n) for n in range(1, 103)]) # Indranil Ghosh, May 24 2017
CROSSREFS
KEYWORD
nonn
AUTHOR
Antti Karttunen, Aug 27 2005
EXTENSIONS
Name clarified by Joerg Arndt, May 24 2017
STATUS
approved