A366721 Number of digits left of the radix point of n when written in base Pi using a greedy algorithm representation.
1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5
Offset: 0
Examples
a(10) = 3 because 10 in base Pi (100.01022...) has 3 digits before the radix point.
Links
- Paolo Xausa, Table of n, a(n) for n = 0..10000
- Wikipedia, Non-integer base of numeration.
Formula
a(0) = 1; for n >= 1, a(n) = floor(log_Pi(n)) + 1.
Comments