OFFSET
0,4
EXAMPLE
Triangle starts:
[0] 0;
[1] 1, 0;
[2] 2, 1, 1;
[3] 3, 2, 2, 1;
[4] 4, 3, 3, 2, 3;
[5] 5, 4, 4, 3, 4, 3;
[6] 6, 5, 5, 4, 5, 4, 4;
[7] 7, 6, 6, 5, 6, 5, 5, 4;
[8] 8, 7, 7, 6, 7, 6, 6, 5, 7;
[9] 9, 8, 8, 7, 8, 7, 7, 6, 8, 7;
MAPLE
MATHEMATICA
Table[n - DigitCount[k, 2, 1], {n, 0, 11}, {k, 0, n}] // Flatten (* Amiram Eldar, Oct 30 2021 *)
CROSSREFS
KEYWORD
nonn,tabl
AUTHOR
Peter Luschny, Oct 29 2021
STATUS
approved