cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A363832 Number of digits left of the radix point of n when written in base e using a greedy algorithm representation.

Original entry on oeis.org

1, 1, 1, 2, 2, 2, 2, 2, 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, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5
Offset: 0

Views

Author

Paolo Xausa, Oct 19 2023

Keywords

Comments

Essentially the same as A004233. - R. J. Mathar, Oct 23 2023

Examples

			a(10) = 3 because 10 in base e (102.11201...) has 3 digits before the radix point.
		

Crossrefs

Programs

  • Mathematica
    A363832[n_]:=Floor[Log[E,Max[n,1]]]+1;Array[A363832,100,0]

Formula

a(0) = 1; for n >= 1, a(n) = floor(log_e(n)) + 1.