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!)
A295683 a(n) = a(n-1) + a(n-3) + a(n-4), where a(0) = 2, a(1) = 1, a(2) = 0, a(3) = 1. 2

%I #22 Sep 08 2022 08:46:20

%S 2,1,0,1,4,5,6,11,20,31,48,79,130,209,336,545,884,1429,2310,3739,6052,

%T 9791,15840,25631,41474,67105,108576,175681,284260,459941,744198,

%U 1204139,1948340,3152479,5100816,8253295,13354114,21607409,34961520,56568929,91530452

%N a(n) = a(n-1) + a(n-3) + a(n-4), where a(0) = 2, a(1) = 1, a(2) = 0, a(3) = 1.

%C a(n)/a(n-1) -> (1 + sqrt(5))/2 = golden ratio (A001622), so that a( ) has the growth rate of the Fibonacci numbers (A000045).

%H Clark Kimberling, <a href="/A295683/b295683.txt">Table of n, a(n) for n = 0..2000</a>

%H <a href="/index/Rec#order_04">Index entries for linear recurrences with constant coefficients</a>, signature (1,0,1,1).

%F G.f.: (2 - x - x^2 - x^3)/(1 - x - x^3 - x^4).

%F a(n) = (2/5) * A000045(n) + (4/5) * A000045(n-1) + (6/5) * A056594(n) + (3/5) * A056594(n-1) for n >= 1. - _Robert Israel_, Apr 03 2019

%p f:= gfun:-rectoproc(a(n) = a(n-1) + a(n-3) + a(n-4), a(0) = 2, a(1) = 1, a(2) = 0, a(3) = 1}, a(n), remember):

%p map(f, [$0..100]); # _Robert Israel_, Apr 03 2019

%t LinearRecurrence[{1, 0, 1, 1}, {2, 1, 0, 1}, 45]

%o (PARI) my(x='x+O('x^45)); Vec((-2 + x + x^2 + x^3)/(-1 + x + x^3 + x^4)) \\ _Georg Fischer_, Apr 03 2019

%o (Magma) I:=[2,1,0,1]; [n le 4 select I[n] else Self(n-1) +Self(n-3) +Self(n-4): n in [1..45]]; // _G. C. Greubel_, Apr 03 2019

%o (Sage) ((2-x-x^2-x^3)/(1-x-x^3-x^4)).series(x, 45).coefficients(x, sparse=False) # _G. C. Greubel_, Apr 03 2019

%Y Cf. A001622, A000045, A056594.

%K nonn,easy

%O 0,1

%A _Clark Kimberling_, Nov 29 2017

%E a(0) = 2 amended by _Georg Fischer_, Apr 03 2019

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 April 20 00:26 EDT 2024. Contains 371798 sequences. (Running on oeis4.)