cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A112059 Nonzero terms of A112053 and A112080.

This page as a plain text file.
%I A112059 #15 May 08 2021 08:35:29
%S A112059 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 A112059 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 A112059 -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 A112059 Nonzero terms of A112053 and A112080.
%H A112059 Antti Karttunen, <a href="/A112059/b112059.txt">Table of n, a(n) for n = 1..4096</a>
%F A112059 a(n) = A112053(A112054(n)).
%o A112059 (Python)
%o A112059 from sympy import jacobi_symbol as J
%o A112059 def a112046(n):
%o A112059     i=1
%o A112059     while True:
%o A112059         if J(i, 2*n + 1)!=1: return i
%o A112059         else: i+=1
%o A112059 def a(n): return a112046(2*n) - a112046(2*n - 1)
%o A112059 print([a(n) for n in range(1, 201) if a(n)!=0]) # _Indranil Ghosh_, May 25 2017
%Y A112059 Cf. A112053, A112054, A112080.
%K A112059 sign
%O A112059 1,1
%A A112059 _Antti Karttunen_, Aug 27 2005