login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A124904
a(n) = least integer j>=0 such that n = floor[(3^j)/(2^k)] for some integer k>=0.
2
0, 2, 1, 2, 4, 3, 5, 7, 2, 4, 6, 8, 3, 10, 5, 12, 7, 14, 9, 4, 11, 6, 18, 13, 8, 32, 3, 10, 22, 5, 29, 12, 36, 7, 31, 14, 38, 9, 33, 4, 16, 40, 11, 35, 6, 18, 42, 13, 25, 49, 8, 32, 44, 15, 27, 39, 10, 22, 34, 5, 17, 29, 41, 12, 24, 36, 48, 7, 19, 31, 43, 14, 26, 38, 91, 9, 21, 33, 86
OFFSET
1,2
COMMENTS
The k-sequence is A124912.
EXAMPLE
1=[3^0/2^0], 2=[3^2/2^2], 3=[3^1/2^0], 4=[3^2/2^1],...,
so j-sequence = (0,2,1,2,...); k-sequence = (0,2,0,1,...).
PROG
(PARI) See Links section.
CROSSREFS
Cf. A124912.
Sequence in context: A377274 A323465 A364780 * A187500 A323460 A129144
KEYWORD
nonn
AUTHOR
Clark Kimberling, Nov 12 2006
STATUS
approved