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 A339975 #18 Jul 19 2021 01:23:25 %S A339975 0,1,0,1,2,1,0,1,0,1,2,1,2,1,0,1,2,1,2,3,2,1,2,1,2,3,2,3,2,1,2,1,2,3, %T A339975 2,1,2,1,0,1,2,1,2,1,0,1,0,1,2,1,0,1,2,1,2,1,0,1,2,1,0,1,0,1,2,1,0,1, %U A339975 2,1,2,1,0,1,0,1,2,1,0,1,0,-1,0,1,0,1,0 %N A339975 a(n) is the number of 0's minus the number of 1's among the first n terms of A337546. %C A339975 See A339976 for the positions of 0's. %H A339975 Rémy Sigrist, <a href="/A339975/b339975.txt">Table of n, a(n) for n = 0..10000</a> %H A339975 Rémy Sigrist, <a href="/A339975/a339975.txt">C program for A339975</a> %F A339975 a(n) = Sum_{k = 1..n} (-1)^A337546(n). %F A339975 a(n) = n - 2*Sum_{k = 1..n} A337546(n). %e A339975 For n = 5, the first 5 terms of A337546 are 0, 1, 0, 0, 1, so a(5) = 3 - 2 = 1. %o A339975 (C) See Links section. %Y A339975 Cf. A294448, A337546, A339976. %K A339975 sign %O A339975 0,5 %A A339975 _Rémy Sigrist_, Dec 25 2020