OFFSET
0,2
FORMULA
Conjecture: a(n) ~ 6*log_2(3)*n = 6*A020857*n.
EXAMPLE
For n = 3, the smallest power of 2 with exactly 2*3 = 6 1's in its ternary representation is 2^14 = 211110211_3, so a(3) = 14.
PROG
(PARI) a(n) = my(k=1); while (#select(x->(x==1), digits(2^k, 3)) != 2*n, k++); k; \\ Michel Marcus, Aug 17 2024
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Pontus von Brömssen, Aug 17 2024
STATUS
approved