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