The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
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!)
A011369 a(n+1) = a(n) - F(n) if > 0, otherwise a(n) + F(n), where F() are Fibonacci numbers; a(0) = 0. 1

%I #36 Jan 01 2019 07:03:25

%S 0,0,1,2,4,1,6,14,1,22,56,1,90,234,1,378,988,1,1598,4182,1,6766,17712,

%T 1,28658,75026,1,121394,317812,1,514230,1346270,1,2178310,5702888,1,

%U 9227466,24157818,1,39088170,102334156,1,165580142,433494438,1,701408734

%N a(n+1) = a(n) - F(n) if > 0, otherwise a(n) + F(n), where F() are Fibonacci numbers; a(0) = 0.

%H Seiichi Manyama, <a href="/A011369/b011369.txt">Table of n, a(n) for n = 0..4000</a>

%F a(n) = 0, if n <= 1; F(n-1)+1, if n == 0 (mod 3); F(n)+1, if n == 1 (mod 3); 1, if n == 2 (mod 3). - _David W. Wilson_; corrected by _Michel Marcus_, Dec 29 2018

%F For n>=1, a(n) = F(0)<+>F(1)<+>...<+>F(n-1), where operation <+> is defined in comment in A245618. - _Vladimir Shevelev_, Nov 05 2014

%F Empirical g.f.: -x^2*(2*x^6 - x^4 + 7*x^3 - 2*x^2 - x - 1) / ((x-1)*(x^2 + x - 1)*(x^4 - x^3 + 2*x^2 + x + 1)). - _Colin Barker_, Nov 06 2014

%o (PARI) a(n) = if (n==0, 0, my(d=a(n-1)-fibonacci(n-1)); if (d>0, d, d+2*fibonacci(n-1))) \\ _Michel Marcus_, Dec 29 2018

%o (PARI) a(n) = if (n<=1, 0, my(m=(n % 3)); if (m==0, fibonacci(n-1)+1, if (m==1, fibonacci(n)+1, 1))); \\ \\ _Michel Marcus_, Dec 29 2018

%Y Cf. A000045, A001611.

%K nonn,easy

%O 0,4

%A _N. J. A. Sloane_

%E Name edited by _Michel Marcus_, Dec 29 2018

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 May 31 22:12 EDT 2024. Contains 373007 sequences. (Running on oeis4.)