OFFSET
0,2
LINKS
EXAMPLE
a(5) = 15 because 5 occurs for the first time at position 15 in A347409.
MATHEMATICA
PROG
(PARI) f(n) = {my(nb=0); while (n != 1, if (n % 2, n=3*n+1, my(x = valuation(n, 2)); n /= 2^x; nb = max(nb, x)); ); nb; } \\ A347409
a(n) = my(k=1); while (f(k) != n, k++); k; \\ Michel Marcus, Sep 10 2021
CROSSREFS
KEYWORD
nonn,hard
AUTHOR
Paolo Xausa, Sep 10 2021
EXTENSIONS
a(21)-a(22) from Michel Marcus, Sep 10 2021
a(23)-a(28) from Alois P. Heinz, Sep 11 2021
a(29)-a(34) from Michael S. Branicky, Sep 28 2021
a(35) from Chai Wah Wu, Oct 02 2021
STATUS
approved