A228483 Duplicate of A129979.
1, 3, 3, 2, 3, 1, 3, 2, 2, 1, 3, 2, 3, 1, 1, 2, 3, 2, 3, 2, 1, 1, 3, 2, 2, 1, 2, 2, 3, 3, 3, 2, 1, 1, 1, 2, 3, 1, 1, 2, 3, 3, 3, 2, 2, 1, 3, 2, 2, 2, 1, 2, 3, 2, 1, 2, 1, 1, 3, 2, 3, 1, 2, 2, 1, 3, 3, 2, 1, 3, 3, 2, 3, 1, 2, 2, 1, 3, 3, 2, 2, 1, 3, 2, 1, 1, 1
Offset: 1
Keywords
Examples
a(19) = 3 because mu(19) = -1 and 2 - (-1) = 3. a(20) = 2 because mu(20) = 0 and 2 - 0 = 2. a(21) = 1 because mu(21) = 1 and 2 - 1 = 1.
Links
- Vincenzo Librandi, Table of n, a(n) for n = 1..1000
Programs
-
Magma
[2-MoebiusMu(n): n in [1..100]]; // Vincenzo Librandi, Aug 23 2013
-
Maple
with(numtheory); seq(2-mobius(k),k=1..70);
-
Mathematica
2 - MoebiusMu[Range[100]] (* Alonso del Arte, Aug 22 2013 *)
-
PARI
a(n) = 2 - moebius(n); \\ Michel Marcus, Apr 26 2016
Comments