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 A317673 #22 Aug 28 2023 08:25:35 %S A317673 1,2,-1,3,-1,-2,-1,4,0,-2,-1,-3,-1,-2,1,5,-1,0,-1,-3,1,-2,-1,-4,0,-2, %T A317673 0,-3,-1,2,-1,6,1,-2,1,0,-1,-2,1,-4,-1,2,-1,-3,0,-2,-1,-5,0,0,1,-3,-1, %U A317673 0,1,-4,1,-2,-1,3,-1,-2,0,7,1,2,-1,-3,1,2,-1,0,-1 %N A317673 Moebius transform of A129502. %C A317673 Dirichlet convolution of A209635 and A209229. %H A317673 Andrew Howroyd, <a href="/A317673/b317673.txt">Table of n, a(n) for n = 1..1024</a> %F A317673 Multiplicative with a(2^e) = e+1, and if p is an odd prime, a(p) = -1 and a(p^e) = 0 for e >= 2. - _Amiram Eldar_, Aug 28 2023 %t A317673 a[n_] := Module[{e}, Sum[e = IntegerExponent[d, 2]; If[d == 2^e, MoebiusMu[n/d] Binomial[2 + e, 2], 0], {d, Divisors[n]}]]; %t A317673 a /@ Range[1, 100] (* _Jean-François Alcover_, Sep 24 2019, from PARI *) %t A317673 f[p_, e_] := If[e == 1, -1, 0]; f[2, e_] := e+1; a[1] = 1; a[n_] := Times @@ f @@@ FactorInteger[n]; Array[a, 70] (* _Amiram Eldar_, Aug 28 2023 *) %o A317673 (PARI) a(n)={sumdiv(n, d, my(e=valuation(d, 2)); if(d==1<<e, moebius(n/d) * binomial(2+e,2), 0))} %Y A317673 First column of A129501. %Y A317673 Cf. A129502, A209229, A209635 (Moebius transform of A104117). %K A317673 sign,easy,mult %O A317673 1,2 %A A317673 _Andrew Howroyd_, Aug 03 2018