login
A350505
Irregular triangle read by rows: a(n) is the n-th term of a truncated Kolakoski tree.
2
1, 2, 7, 3, 4, 15, 24, 5, 6, 14, 10, 35, 122, 36, 37, 11, 61, 8, 9, 21, 22, 34, 23, 53, 54, 184, 185, 55, 56, 84, 126, 16, 17, 136, 311, 12, 13, 20, 48, 32, 33, 113, 51, 392, 78, 52, 79, 119, 405, 80, 81, 277, 278, 414, 621, 82, 83, 283, 125, 425, 191, 2166, 288
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.
EXAMPLE
Triangle begins:
1;
2, 7;
3, 4, 15, 24;
5, 6, 14, 10, 35, 122, 36, 37;
...
PROG
(C++) See Links section.
CROSSREFS
Inverse is A350506.
Cf. A111081.
Sequence in context: A371707 A226626 A249778 * A326661 A326662 A345038
KEYWORD
nonn,look,tabf
AUTHOR
John-Vincent Saddic, Jan 02 2022
STATUS
approved