A054527 Triangle read by rows: T(n,k) = Moebius mu(k) (n >= 1, 1 <= k <= n).
1, 1, -1, 1, -1, -1, 1, -1, -1, 0, 1, -1, -1, 0, -1, 1, -1, -1, 0, -1, 1, 1, -1, -1, 0, -1, 1, -1, 1, -1, -1, 0, -1, 1, -1, 0, 1, -1, -1, 0, -1, 1, -1, 0, 0, 1, -1, -1, 0, -1, 1, -1, 0, 0, 1, 1, -1, -1, 0, -1, 1, -1, 0, 0, 1, -1, 1, -1, -1, 0, -1, 1, -1, 0, 0, 1, -1, 0, 1, -1, -1, 0, -1, 1, -1, 0, 0, 1, -1, 0, -1, 1, -1
Offset: 1
Examples
First few rows of the triangle: 1; 1, -1; 1, -1, -1; 1, -1, -1, 0; 1, -1, -1, 0, -1; 1, -1, -1, 0, -1, 1; ...
Links
- Reinhard Zumkeller, Rows n = 1..125 of triangle, flattened
Programs
-
Haskell
import Data.List (inits) a054527 n k = a054527_tabl !! (n-1) !! (k-1) a054527_row n = a054527_tabl !! (n-1) a054527_tabl = tail $ inits a008683_list -- Reinhard Zumkeller, Sep 03 2015
-
Mathematica
Table[#[[1 ;; n]], {n, Length[#]}] &@ Array[MoebiusMu, 12] // Flatten (* Michael De Vlieger, Feb 05 2022 *)
Extensions
Edited by N. J. A. Sloane, Jul 03 2008 at the suggestion of R. J. Mathar
Comments