A380563 Rectangular array R read by descending antidiagonals: (row 1) = (R(1,k)) = (1 + A010060(k)), k >= 1; (row n+1) = inverse runlength sequence of row n; and R(n,1) = (1, 1, 1, 1, 1,...) = (A130196(n)) for n >= 1. See Comments.
1, 2, 1, 2, 2, 1, 1, 2, 2, 1, 2, 1, 2, 2, 1, 1, 1, 1, 2, 2, 1, 1, 2, 1, 1, 2, 2, 1, 2, 1, 2, 1, 1, 2, 2, 1, 2, 1, 1, 2, 1, 1, 2, 2, 1, 1, 2, 2, 1, 2, 1, 1, 2, 2, 1, 1, 1, 2, 2, 1, 2, 1, 1, 2, 2, 1, 2, 2, 1, 2, 2, 1, 2, 1, 1, 2, 2, 1
Offset: 1
Examples
Corner: 1 2 2 1 2 1 1 2 2 1 1 2 1 2 2 1 2 1 1 2 1 2 1 2 2 1 1 2 1 1 2 1 2 2 1 1 2 1 2 2 1 2 2 1 1 2 2 1 1 2 1 2 2 1 2 1 1 2 1 1 2 2 1 2 1 1 1 2 2 1 1 2 1 2 2 1 2 2 1 1 2 1 1 2 1 2 2 1 1 2 2 1 1 2 1 2 2 1 2 2 1 1 2 1 1 2 2 1 2 1 1 2 2 1 1 2 1 2 2 1 2 2 1 1 2 1 1 2 2 1 2 1
Programs
-
Mathematica
invRE[seq_, k_] := Flatten[Map[ConstantArray[#[[2]], #[[1]]] &, Partition[Riffle[seq, {k, 2 - Mod[k + 1, 2]}, {2, -1, 2}], 2]]]; row1 = 1 + ThueMorse[Range[0, 200]] (* 1 + A010060 *); rows = {row1}; col = PadRight[{}, 30, {1}]; Do[AppendTo[rows, Take[invRE[Last[rows], col[[n]]], Length[row1]]], {n, 2, Length[col]}] rows // ColumnForm (* array *) v[n_, k_] := rows[[n]][[k]]; Table[v[n - k + 1, k], {n, 12}, {k, n, 1, -1}] // Flatten (*sequence*) (*Peter J.C.Moses,Nov 20 2024*)
Comments