OFFSET
1,2
COMMENTS
Or m such that A022921(m) = 2.
Also largest m such that 2^(m+n) > 3^m. - Bob Selcoe, Dec 19 2021
LINKS
Benjamin Lombardo, Table of n, a(n) for n = 1..1000
FORMULA
a(n) = floor(n/(log_2(3)-1)).
a(n) = A054414(n) - n - 1.
EXAMPLE
For m=3, there are exactly two powers of 2 between 3^3 = 27 and 3^(3+1) = 81: 32 and 64, since 27 < 32 < 64 < 81. Therefore, m=3 is an element of the sequence (at n=2).
PROG
(Python)
import math
def a(n):
return math.floor(n/(math.log2(3)-1))
for n in range(1, 101):
print("a(" + str(n) + ") = " + str(a(n)))
CROSSREFS
KEYWORD
nonn
AUTHOR
Benjamin Lombardo, Sep 08 2019
STATUS
approved