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 A324811 #7 Mar 17 2019 21:08:15 %S A324811 0,0,0,2,0,1,0,3,2,1,0,2,0,1,2,4,0,1,0,2,2,1,0,3,2,1,3,2,0,3,0,5,1,1, %T A324811 2,4,0,1,2,3,0,1,0,2,3,1,0,4,2,1,1,2,0,1,2,3,2,1,0,2,0,1,1,6,1,2,0,2, %U A324811 1,1,0,5,0,1,3,2,2,1,0,4,5,1,0,3,2,1,2,3,0,4,2,2,1,1,2,5,0,1,3,4,0,2,0,3,3 %N A324811 a(n) = A324728(n) - A061395(n). %C A324811 The first negative term is a(182) = -6, as A324712(182) = 0 and 182 = 2*7*13 = prime(1) * prime(4) * prime(6). %C A324811 The next negative term after that is a(198) = -4, as A324712(198) = 1, and 198 = 2 * 3^2 * 11 = prime(1) * prime(2)^2 * prime(5). %C A324811 There are only 161 negative terms among the first 10000 terms. %H A324811 Antti Karttunen, <a href="/A324811/b324811.txt">Table of n, a(n) for n = 1..10000</a> (based on Hans Havermann's factorization of A156552) %H A324811 <a href="/index/Bi#binary">Index entries for sequences related to binary expansion of n</a> %H A324811 <a href="/index/Pri#prime_indices">Index entries for sequences computed from indices in prime factorization</a> %H A324811 <a href="/index/Si#SIGMAN">Index entries for sequences related to sigma(n)</a> %F A324811 a(n) = A324728(n) - A061395(n). %F A324811 a(p) = 0 for all primes p. %o A324811 (PARI) %o A324811 A061395(n) = if(1==n, 0, primepi(vecmax(factor(n)[, 1]))); %o A324811 A324712(n) = { my(v=0); fordiv(n, d, if(issquarefree(n/d), v=bitxor(v, A323243(d)))); (v); }; \\ Needs also code from A323243. %o A324811 A000523(n) = if( n<1, 0, #binary(n) - 1); \\ From A000523 %o A324811 A324728(n) = { my(k=A324712(n)); if(!k,k,(1+A000523(k))); }; %o A324811 A324811(n) = (A324728(n) - A061395(n)); %Y A324811 Cf. A000523, A061395, A323243, A324712, A324728. %K A324811 sign %O A324811 1,4 %A A324811 _Antti Karttunen_, Mar 17 2019