OFFSET
1,3
COMMENTS
For any k > 0, the value k appears 2^(k-1) times.
LINKS
Rémy Sigrist, Table of n, a(n) for n = 1..10048
Rémy Sigrist, PARI program
FORMULA
a(n) = a(A376676(n)) + 1 for any n > 1.
EXAMPLE
The first terms, alongside the corresponding run lengths transforms, are:
n a(n) Run lengths transforms
-- ---- ---------------------------------
1 0 1
2 1 2 -> 1
3 2 11 -> 2 -> 1
4 3 12 -> 11 -> 2 -> 1
5 3 21 -> 11 -> 2 -> 1
6 2 22 -> 2 -> 1
7 4 112 -> 21 -> 11 -> 2 -> 1
8 4 122 -> 12 -> 11 -> 2 -> 1
9 4 211 -> 12 -> 11 -> 2 -> 1
10 4 221 -> 21 -> 11 -> 2 -> 1
11 5 1121 -> 211 -> 12 -> 11 -> 2 -> 1
12 3 1122 -> 22 -> 2 -> 1
13 5 1211 -> 112 -> 21 -> 11 -> 2 -> 1
14 5 2122 -> 112 -> 21 -> 11 -> 2 -> 1
15 3 2211 -> 22 -> 2 -> 1
16 5 2212 -> 211 -> 12 -> 11 -> 2 -> 1
PROG
(PARI) \\ See Links section.
CROSSREFS
KEYWORD
nonn
AUTHOR
Rémy Sigrist, Oct 02 2024
STATUS
approved