OFFSET
3,1
COMMENTS
Row lengths = 2^(n-2), row sums = 2^n.
REFERENCES
N. J. A. Sloane, On single-deletion-correcting codes, in Codes and Designs (Columbus, OH, 2000), 273-291, Ohio State Univ. Math. Res. Inst. Publ., 10, de Gruyter, Berlin, 2002.
LINKS
Reinhard Zumkeller, Rows n = 3..15 of triangle, flattened
N. J. A. Sloane, On single-deletion-correcting codes
EXAMPLE
2,6; 2,4,6,4; 2,4,8,4,8,4,2,0; ...
PROG
(Haskell)
import Data.List (group, sort, nub, inits, tails)
a057606 n k = a057606_tabf !! (n-3) !! (k-1)
a057606_row n = a057606_tabf !! (n-3)
a057606_tabf = map g $ drop 3 $
iterate (\xs -> (map (0 :) xs) ++ (map (1 :) xs)) [[]] where
g xss = map length $ fill0 $ group $ sort $ map (length . del2) xss
where fill0 uss = f0 uss [1 .. length xss `div` 4] where
f0 _ [] = []
f0 [] (j:js) = [] : f0 [] js
f0 vss'@(vs:vss) (j:js)
| j == head vs = vs : f0 vss js
| otherwise = [] : f0 vss' js
del2 = nub . (concatMap del1) . del1
del1 xs = nub $
zipWith (++) (init $ inits xs) (map tail $ init $ tails xs)
-- Reinhard Zumkeller, Apr 30 2012
CROSSREFS
KEYWORD
nonn,tabf,nice
AUTHOR
N. J. A. Sloane, Oct 08 2000
STATUS
approved