OFFSET
1,1
COMMENTS
a(n) increases very slowly, gradually diverging from 3 + floor(log_2(n)).
LINKS
Indranil Ghosh, Table of n, a(n) for n = 1..10000
Sean A. Irvine, Java program (github)
Wikipedia, Elias omega coding
FORMULA
a(n) = 2 + Sum_{i=0..k} d(i, prime(n)), where d(0, m) = bits(m) and d(i, m) = bits(d(i-1, m) - 1) and k is the least index such that d(k,prime(n))=2, and bits(m) = 1 + floor(log_2(m)) is the number of bits in the binary representation of m.
CROSSREFS
KEYWORD
base,easy,nonn
AUTHOR
Reikku Kulon, Nov 13 2008
EXTENSIONS
Edited by Sean A. Irvine, Mar 29 2026
STATUS
approved
