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!)
A004687 Fibonacci numbers written in base 4. 2

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

%S 0,1,1,2,3,11,20,31,111,202,313,1121,2100,3221,11321,21202,33123,

%T 120331,220120,1001111,1221231,2223002,10110233,12333301,23110200,

%U 102110101,131220301,233331002,1031211303,1331202311

%N Fibonacci numbers written in base 4.

%H Vincenzo Librandi, <a href="/A004687/b004687.txt">Table of n, a(n) for n = 0..1000</a>

%t bf[n_,k_]:=Module[{s=ToString[BaseForm[n,k]]},ToExpression[StringDrop[s,{Part[StringPosition[s,"\n"],1,1],-1}]]] lst={};Do[f=bf[Fibonacci[n],4];AppendTo[lst,f],{n,0,4*4!}];lst (* _Vladimir Joseph Stephan Orlovsky_, Jun 17 2009 *)

%t FromDigits[IntegerDigits[#,4]]&/@Fibonacci[Range[0,30]] (* _Harvey P. Dale_, Jun 24 2011 *)

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

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

%Y Cf. A000045 (Fibonacci), A007090 (numbers in base 4).

%K nonn,base,easy

%O 0,4

%A _N. J. A. Sloane_

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 18:04 EDT 2024. Contains 371254 sequences. (Running on oeis4.)