OFFSET
1,1
LINKS
Clark Kimberling, Table of n, a(n) for n = 1..2000
FORMULA
a(n) = 1 + n + floor(n*log_2(5)) + floor(n*log_3(5)).
EXAMPLE
The joint ranking of the powers of 2, 3, 5 begins like this: 1, 2, 3, 4, 5, 8, 9, 16, 25, 27, 32, 64, 81, 125, 128, 243, 256, 512. The numbers 5^n for n >= 0 are in positions 5, 9, 14.
MATHEMATICA
PROG
(Python)
from sympy import integer_log
def A226724(n): return n+(m:=5**n).bit_length()+integer_log(m, 3)[0] # Chai Wah Wu, Feb 03 2026
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Clark Kimberling, Jun 16 2013
STATUS
approved
