cp's OEIS Frontend

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.

A076544 a(n) = mu(n) + sqf(n) where mu(n) is Moebius function, sqf(n) = 1 if n is squarefree and sqf(n) = -1 otherwise.

Original entry on oeis.org

2, 0, 0, -1, 0, 2, 0, -1, -1, 2, 0, -1, 0, 2, 2, -1, 0, -1, 0, -1, 2, 2, 0, -1, -1, 2, -1, -1, 0, 0, 0, -1, 2, 2, 2, -1, 0, 2, 2, -1, 0, 0, 0, -1, -1, 2, 0, -1, -1, -1, 2, -1, 0, -1, 2, -1, 2, 2, 0, -1, 0, 2, -1, -1, 2, 0, 0, -1, 2, 0, 0, -1, 0, 2, -1, -1, 2, 0, 0, -1, -1, 2, 0, -1, 2, 2, 2, -1, 0, -1, 2, -1, 2, 2, 2, -1, 0, -1, -1, -1
Offset: 1

Views

Author

Zak Seidov, Oct 19 2002

Keywords

Crossrefs

Absolute values give A007423.

Programs

Formula

a(n) = mu(n) + -1^(1+abs(mu(n))), where mu(n) = A008683(n). - Antti Karttunen, Jul 26 2017
From Amiram Eldar, May 28 2025: (Start)
a(n) = 2*mu(n)^2 + mu(n) - 1, where mu(n) = A008683(n).
Asymptotic mean: lim_{m->oo} (1/m) * Sum_{k=1..m} = 12/Pi^2 - 1. (End)