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.
%I A112055 #13 May 08 2021 08:35:18 %S A112055 2,3,5,7,8,12,13,15,17,18,20,22,23,27,28,30,32,33,35,37,38,40,42,43, %T A112055 47,48,50,52,53,55,57,58,62,63,65,67,68,70,72,73,75,77,78,82,83,85,87, %U A112055 88,90,92,93,97,98,100,102,103,107,108,110,112,113,117,118,120,122 %N A112055 a(n) = A112054(n)/6. %t A112055 a112046[n_]:=Block[{i=1}, While[JacobiSymbol[i, 2n + 1]==1, i++]; i]; Select[Range[1000], a112046[2#] - a112046[2# - 1] != 0 &]/6 (* _Indranil Ghosh_, May 25 2017 *) %o A112055 (Python) %o A112055 from sympy import jacobi_symbol as J %o A112055 def a112046(n): %o A112055 i=1 %o A112055 while True: %o A112055 if J(i, 2*n + 1)!=1: return i %o A112055 else: i+=1 %o A112055 def a(n): return a112046(2*n) - a112046(2*n - 1) %o A112055 print([n//6 for n in range(1, 201) if a(n)!=0]) # _Indranil Ghosh_, May 25 2017 %Y A112055 Cf. A112054, A112082 (complement), A112085 (first differences). %K A112055 nonn %O A112055 1,1 %A A112055 _Antti Karttunen_, Aug 27 2005