login
A147814
a(n) is the number of bits in the Elias omega-coded value of prime(n).
2
4, 4, 7, 7, 8, 8, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17
OFFSET
1,1
COMMENTS
a(n) increases very slowly, gradually diverging from 3 + floor(log_2(n)).
LINKS
Sean A. Irvine, Java program (github)
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
Sequence in context: A023404 A140245 A200364 * A168233 A238391 A049647
KEYWORD
base,easy,nonn
AUTHOR
Reikku Kulon, Nov 13 2008
EXTENSIONS
Edited by Sean A. Irvine, Mar 29 2026
STATUS
approved