login
Fibonacci numbers written in base 5.
3

%I #31 Sep 08 2022 08:44:33

%S 0,1,1,2,3,10,13,23,41,114,210,324,1034,1413,3002,4420,12422,22342,

%T 40314,113211,204030,322241,1031321,1404112,2440433,4400100,12341033,

%U 22241133,40132221,112423404,203111130

%N Fibonacci numbers written in base 5.

%C Sequence of last digit has period length of A001175(5)=20. Digits are almost evenly distributed. - _Carmine Suriano_, Mar 30 2012

%H Carmine Suriano and Vincenzo Librandi, <a href="/A004688/b004688.txt">Table of n, a(n) for n = 0..1000</a> (Carmine Suriano for n = 0..73)

%p read("transforms") :

%p A004688 := proc(n)

%p convert( combinat[fibonacci](n),base,5) ;

%p ListTools[Reverse](%) ;

%p digcatL(%) ;

%p end proc: # _R. J. Mathar_, Apr 01 2012

%t Table[BaseForm[Fibonacci[n],5],{n,1,20,1}] (* _Vladimir Joseph Stephan Orlovsky_, Jul 23 2008 *)

%t FromDigits[IntegerDigits[#, 5]]& / @Fibonacci[Range[0, 50]] (* _Vincenzo Librandi_, Jun 07 2013 *)

%o (PARI) vector(50, n, n--; fromdigits(digits(fibonacci(n), 5))) \\ _G. C. Greubel_, Oct 09 2018

%o (Magma) [Seqint(Intseq(Fibonacci(n),5)): n in [0..50]]; // _G. C. Greubel_, Oct 09 2018

%Y Cf. A000045 (Fibonacci), A007091 (numbers in base 5).

%K nonn,base,easy

%O 0,4

%A _N. J. A. Sloane_