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 A372626 #6 May 11 2024 21:51:30 %S A372626 1,-1,1,0,1,-2,1,0,2,-2,1,-1,1,-2,2,0,1,-3,1,0,2,-2,1,-1,2,-2,2,0,1, %T A372626 -4,1,0,2,-2,2,1,1,-2,2,-1,1,-5,1,0,3,-2,1,1,2,-3,2,0,1,-5,2,-1,2,-2, %U A372626 1,0,1,-2,3,0,2,-5,1,0,2,-4,1,1,1,-2,3,0,2,-5,1,-1 %N A372626 a(1) = 1; a(n) = Sum_{d|n, d <= sqrt(n)} (-1)^(n/d + 1) * a(d). %F A372626 G.f.: Sum_{k>=1} (-1)^(k + 1) * a(k) * x^(k^2) / (1 + x^k). %t A372626 a[1] = 1; a[n_] := a[n] = DivisorSum[n, (-1)^(n/# + 1) a[#] &, # <= Sqrt[n] &]; Table[a[n], {n, 80}] %o A372626 (PARI) a(n) = if (n==1, 1, sumdiv(n, d, if (d^2 <= n, (-1)^(n/d+1)*a(d)))); \\ _Michel Marcus_, May 09 2024 %Y A372626 Cf. A308077, A337135, A348660. %K A372626 sign %O A372626 1,6 %A A372626 _Ilya Gutkovskiy_, May 07 2024