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.

Showing 1-2 of 2 results.

A105116 The part of n left of the decimal point when written in base e using a greedy algorithm representation.

Original entry on oeis.org

0, 1, 2, 10, 11, 12, 20, 21, 100, 101, 102, 110, 111, 120, 121, 200, 201, 202, 210, 211, 212, 1000, 1001, 1010, 1011, 1012, 1020, 1021, 1100, 1101, 1102, 1110, 1111, 1120, 1121, 1200, 1201, 1202, 1210, 1211, 1212, 2000, 2001, 2010, 2011, 2012, 2020
Offset: 0

Views

Author

Bryan Jacobs (bryanjj(AT)gmail.com), Apr 08 2005

Keywords

Examples

			3 in base e = 10.020... so a(3) = 10.
		

Crossrefs

Cf. A001113 (e digits).
Cf. A105424 (base phi), A344939 (base Pi).
Cf. A363832 (number of digits).

Programs

  • Mathematica
    A105116[n_]:=FromDigits[First[RealDigits[n,E,Floor[Log[E,Max[n,1]]]+1]]];
    Array[A105116,100,0] (* Paolo Xausa, Oct 18 2023 *)

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

Original entry on oeis.org

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

Views

Author

Paolo Xausa, Oct 17 2023

Keywords

Comments

More than the usual number of terms are shown to distinguish this sequence from A185679.

Examples

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

Crossrefs

Programs

  • Mathematica
    A366721[n_]:=Floor[Log[Pi,Max[n,1]]]+1;Array[A366721,200,0]

Formula

a(0) = 1; for n >= 1, a(n) = floor(log_Pi(n)) + 1.
Showing 1-2 of 2 results.