OFFSET
0,3
LINKS
Paolo Xausa, Table of n, a(n) for n = 0..10000
Wikipedia, Non-integer base of numeration.
EXAMPLE
a(5) = 11 because 5 in base Pi is 11.22012202...
MAPLE
A344939 := proc(n)
local e, ntrunc, a, d;
Digits := 1000 ;
if n = 0 then
return 0 ;
end if;
ntrunc := n ;
e := floor(log(n)/log(Pi)) ;
a := 0 ;
while e >= 0 do
d := floor(ntrunc/Pi^e) ;
a := 10*a+d ;
ntrunc := evalf(ntrunc-d*Pi^e) ;
e := e-1 ;
end do:
a ;
end proc:
seq(A344939(n), n=0..15) ; # R. J. Mathar, Aug 16 2021
MATHEMATICA
A344939[n_]:=FromDigits[First[RealDigits[n, Pi, Floor[Log[Pi, Max[n, 1]]]+1]]];
Array[A344939, 100, 0] (* Paolo Xausa, Oct 17 2023 *)
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Paolo Xausa, Jun 03 2021
EXTENSIONS
Name edited by Paolo Xausa, Oct 18 2023
STATUS
approved