login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A105116 The part of n left of the decimal point when written in base e using a greedy algorithm representation. 4

%I #17 Oct 20 2023 06:47:36

%S 0,1,2,10,11,12,20,21,100,101,102,110,111,120,121,200,201,202,210,211,

%T 212,1000,1001,1010,1011,1012,1020,1021,1100,1101,1102,1110,1111,1120,

%U 1121,1200,1201,1202,1210,1211,1212,2000,2001,2010,2011,2012,2020

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

%H Paolo Xausa, <a href="/A105116/b105116.txt">Table of n, a(n) for n = 0..10000</a>

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

%t A105116[n_]:=FromDigits[First[RealDigits[n,E,Floor[Log[E,Max[n,1]]]+1]]];

%t Array[A105116,100,0] (* _Paolo Xausa_, Oct 18 2023 *)

%Y Cf. A001113 (e digits).

%Y Cf. A105424 (base phi), A344939 (base Pi).

%Y Cf. A363832 (number of digits).

%K nonn,base

%O 0,3

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

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified March 28 12:59 EDT 2024. Contains 371254 sequences. (Running on oeis4.)