The OEIS Foundation is supported by donations from users of the OEIS and by a grant from the Simons Foundation.

 Hints (Greetings from The On-Line Encyclopedia of Integer Sequences!)
 A112059 Nonzero terms of A112053 and A112080. 3

%I

%S 2,-2,4,8,-2,12,-6,12,2,-2,-6,18,-6,2,-6,-4,2,-2,18,2,-2,24,6,-2,6,-8,

%T 4,2,-2,-6,32,-6,2,-6,-10,2,-2,28,2,-2,4,38,-2,6,-6,4,2,-2,-4,42,-6,2,

%U -8,-4,2,-2,2,-2,6,8,-2,48,-6,4,2,-2,-10,6,-12,2,-6,-4,2,-2,2,-2,52,8

%N Nonzero terms of A112053 and A112080.

%H Antti Karttunen, <a href="/A112059/b112059.txt">Table of n, a(n) for n = 1..4096</a>

%F a(n) = A112053(A112054(n)).

%o (Python)

%o from sympy import jacobi_symbol as J

%o def a112046(n):

%o i=1

%o while True:

%o if J(i, 2*n + 1)!=1: return i

%o else: i+=1

%o def a(n): return a112046(2*n) - a112046(2*n - 1)

%o print([a(n) for n in range(1, 201) if a(n)!=0]) # _Indranil Ghosh_, May 25 2017

%Y Cf. A112053, A112054, A112080.

%K sign

%O 1,1

%A _Antti Karttunen_, Aug 27 2005

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recent
The OEIS Community | Maintained by The OEIS Foundation Inc.

Last modified July 31 17:32 EDT 2021. Contains 346376 sequences. (Running on oeis4.)