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 A158210 #32 Oct 05 2024 09:09:42 %S A158210 0,-1,-1,1,-1,-2,-1,1,1,-2,-1,2,-1,-2,-2,1,-1,2,-1,2,-2,-2,-1,2,1,-2, %T A158210 1,2,-1,-3,-1,1,-2,-2,-2,2,-1,-2,-2,2,-1,-3,-1,2,2,-2,-1,2,1,2,-2,2, %U A158210 -1,2,-2,2,-2,-2,-1,3,-1,-2,2,1,-2,-3,-1,2,-2,-3,-1,2,-1,-2,2,2,-2,-3,-1,2,1 %N A158210 a(n) = omega(n) * (-1)^mu(n), where mu is the Moebius function. %C A158210 Numbers k such that: a(k) < -1: A120944; a(k) = -1: A000040, a(k) > -1: A162966; a(k) = +1: A246547; a(k) > +1: A126706. %H A158210 Daniel Forgues, <a href="/A158210/b158210.txt">Table of n, a(n) for n = 1..10000</a> %F A158210 a(n) = omega(n) * (-1)^mu(n), where mu is the Moebius function. %F A158210 a(n) = A001221(n) * (-1)^A008683(n). %F A158210 a(mn) = [|a(m)| + |a(n)|] * max(sign[a(n)], sign[a(m)]), gcd(m,n) = 1, m > 1, n > 1. %F A158210 Sum_{k=1..n} a(k) = (1-2/zeta(2)) * n * log(log(n)) + O(n). - _Amiram Eldar_, Oct 05 2024 %t A158210 Table[(-1)^MoebiusMu[n]*PrimeNu[n], {n, 81}] (* _L. Edson Jeffery_, Dec 08 2014 *) %o A158210 (PARI) a(n) = {my(f= factor(n)); omega(f) * (-1)^moebius(f);} \\ _Amiram Eldar_, Oct 05 2024 %Y A158210 Cf. A001221 (omega), A008683 (mu). %Y A158210 Cf. A120944, A000040, A162966, A246547, A126706, A013661. %K A158210 sign %O A158210 1,6 %A A158210 _Daniel Forgues_, Mar 14 2009 %E A158210 Edited by _Joerg Arndt_, Feb 12 2024