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

%I #23 Oct 20 2023 06:47:22

%S 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,

%T 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,

%U 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

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

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

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

%H Wikipedia, <a href="https://en.wikipedia.org/wiki/Non-integer_base_of_numeration">Non-integer base of numeration</a>.

%F a(0) = 1; for n >= 1, a(n) = floor(log_Pi(n)) + 1.

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

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

%Y Cf. A000796, A055642, A185679, A344939, A362692, A363832.

%K nonn,base

%O 0,5

%A _Paolo Xausa_, Oct 17 2023