OFFSET
1,3
COMMENTS
Conjecture: All positive integers appear in the sequence.
EXAMPLE
a(1) = 1 (by definition).
a(2) = a(a(1)) = a(1) = 1 (2 is even).
a(3) = number of times a(2) occurs = number of times 1 occurs = 2 (3 is odd).
a(4) = a(a(3)) = a(2) = 1 (4 is even).
a(5) = number of times a(4) occurs = number of times 1 occurs = 3 (5 is odd).
a(6) = a(a(5)) = a(3) = 2 (6 is even).
PROG
(PARI) lista(nn) = my(va = vector(nn)); va[1] = 1; for (n=2, nn, if (n%2, va[n] = #select(x->(x==va[n-1]), va), va[n] = va[va[n-1]]); ); va; \\ Michel Marcus, Oct 23 2023
CROSSREFS
KEYWORD
nonn
AUTHOR
Tanmaya Mohanty, Oct 23 2023
STATUS
approved