OFFSET
1,2
COMMENTS
Construct a tree with these rules: The root node is labeled 1. Children of odd indices are labeled 2. Children of even indices are labeled 1. Nodes labeled 1 have one child. Nodes labeled 2 have two children. At this point, the values of the n-th row comprise the digits in A111081(n). Replace each node labeled 2 with the positive integers in breadth-first order. Remove all nonbranching nodes.
LINKS
Rémy Sigrist, Table of n, a(n) for n = 1..5000
Rémy Sigrist, Illustration of the construction
Rémy Sigrist, C++ program
EXAMPLE
Triangle begins:
1;
2, 7;
3, 4, 15, 24;
5, 6, 14, 10, 35, 122, 36, 37;
...
PROG
(C++) See Links section.
CROSSREFS
KEYWORD
AUTHOR
John-Vincent Saddic, Jan 02 2022
STATUS
approved