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 A325801 #7 May 28 2019 19:39:23 %S A325801 0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,1,0,0,0,0, %T A325801 0,2,0,0,0,1,0,0,0,0,0,0,0,3,0,0,0,0,0,0,0,0,0,0,0,4,0,0,1,0,0,0,0,0, %U A325801 0,1,0,4,0,0,0,0,0,0,0,2,0,0,0,3,0,0,0,0,0,3,0,0,0,0,0,4,0,0,0,0,0,0,0,0,0 %N A325801 Number of divisors of n minus the number of distinct positive subset-sums of the prime indices of n. %C A325801 A prime index of n is a number m such that prime(m) divides n. The multiset of prime indices of n is row n of A112798, with sum A056239(n). A positive subset-sum of an integer partition is any sum of a nonempty submultiset of it. %H A325801 Antti Karttunen, <a href="/A325801/b325801.txt">Table of n, a(n) for n = 1..20000</a> %F A325801 a(n) = A000005(n) - A299701(n). %t A325801 hwt[n_]:=Total[Cases[FactorInteger[n],{p_,k_}:>PrimePi[p] k]]; %t A325801 Table[DivisorSigma[0,n]-Length[Union[hwt/@Divisors[n]]],{n,100}] %o A325801 (PARI) %o A325801 A325801(n) = (numdiv(n) - A299701(n)); %o A325801 A299701(n) = { my(f = factor(n), pids = List([])); for(i=1,#f~, while(f[i,2], f[i,2]--; listput(pids,primepi(f[i,1])))); pids = Vec(pids); my(sv=vector(vecsum(pids))); for(b=1,(2^length(pids))-1,sv[sumbybits(pids,b)] = 1); 1+vecsum(sv); }; \\ Not really an optimal way to count these. %o A325801 sumbybits(v,b) = { my(s=0,i=1); while(b>0,s += (b%2)*v[i]; i++; b >>= 1); (s); }; \\ _Antti Karttunen_, May 26 2019 %Y A325801 Positions of 0's are A299702. %Y A325801 Positions of 1's are A325802. %Y A325801 Positions of positive integers are A299729. %Y A325801 Cf. A000005, A002033, A056239, A108917, A112798, A276024, A304793. %Y A325801 Cf. A325694, A325780, A325781, A325792, A325793, A325799. %K A325801 nonn %O A325801 1,24 %A A325801 _Gus Wiseman_, May 23 2019