A157657 a(1) = 1, a(n) = -mu(n) for n >= 2.
1, 1, 1, 0, 1, -1, 1, 0, 0, -1, 1, 0, 1, -1, -1, 0, 1, 0, 1, 0, -1, -1, 1, 0, 0, -1, 0, 0, 1, 1, 1, 0, -1, -1, -1, 0, 1, -1, -1, 0, 1, 1, 1, 0, 0, -1, 1, 0, 0, 0, -1, 0, 1, 0, -1, 0, -1, -1, 1, 0, 1, -1, 0, 0, -1, 1, 1, 0, -1, 1, 1, 0, 1, -1, 0, 0, -1, 1, 1, 0, 0, -1, 1, 0, -1, -1, -1, 0, 1, 0, -1, 0, -1, -1, -1, 0, 1, 0, 0, 0
Offset: 1
Keywords
Links
Programs
-
Mathematica
a[1]:=1; a[n_]:=-MoebiusMu[n]; Array[a,100] (* Stefano Spezia, May 03 2025 *)
-
PARI
a(n)=if(n==1,1, -moebius(n)); \\ Joerg Arndt, Aug 25 2014
-
Scheme
(define (A157657 n) (if (= 1 n) 1 (- (A008683 n)))) ;; Antti Karttunen, Jul 26 2017
Extensions
Added more terms, Joerg Arndt, Aug 25 2014
Comments