[go: up one dir, main page]

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!)
A256494 Expansion of -x^2*(x^3+x-1) / ((x-1)*(x+1)*(2*x-1)*(x^2+1)). 3

%I #28 Sep 08 2022 08:46:11

%S 0,1,1,2,3,7,13,26,51,103,205,410,819,1639,3277,6554,13107,26215,

%T 52429,104858,209715,419431,838861,1677722,3355443,6710887,13421773,

%U 26843546,53687091,107374183,214748365,429496730,858993459,1717986919,3435973837,6871947674,13743895347,27487790695,54975581389,109951162778

%N Expansion of -x^2*(x^3+x-1) / ((x-1)*(x+1)*(2*x-1)*(x^2+1)).

%C Previous name was: Golden Book's Level Leap Sequence.

%C x-positions a(n) of transition from phase 1 (I I) to 2 (/\) for the Golden Book’s y-position n.

%H Colin Barker, <a href="/A256494/b256494.txt">Table of n, a(n) for n = 1..1000</a>

%H Armands Strazds, <a href="http://www.zime.lv/book/?oeis">The Golden Book</a>, 1990. [broken link]

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

%F a(n) = 2 * a(n - 1) + r((n - 1) % 4); r = array(1, -1, 0, -1).

%F From _Colin Barker_, Apr 09 2015: (Start)

%F a(n) = 2*a(n-1)+a(n-4)-2*a(n-5) for n>5.

%F a(n) = (5+5*(-1)^n-(1+2*i)*(-i)^n-(1-i*2)*i^n+2^(1+n))/20 for n>0 where i=sqrt(-1).

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

%F (End)

%t Join[{0}, LinearRecurrence[{2, 0, 0, 1, - 2}, {1, 1, 2, 3, 7}, 50]] (* _Vincenzo Librandi_, Dec 25 2015 *)

%o (PHP) $r = array(1, -1, 0, -1);

%o $a[0] = 0;

%o for ($n = 1; $n < 40; $n++) {

%o $a[$n] = 2 * $a[$n - 1] + $r[($n - 1) % 4];

%o }

%o echo(implode(", ", $a));

%o (PARI) concat(0, Vec(-x^2*(x^3+x-1)/((x-1)*(x+1)*(2*x-1)*(x^2+1)) + O(x^100))) \\ _Colin Barker_, Apr 09 2015

%o (Magma) I:=[0,1,1,2,3,7]; [n le 6 select I[n] else 2*Self(n-1)+Self(n-4)-2*Self(n-5): n in [1..40]]; // _Vincenzo Librandi_, Dec 25 2015

%Y Cf. A248646, A001045.

%K nonn,easy

%O 1,4

%A _Armands Strazds_, Mar 30 2015

%E New name (using g.f. from Colin Barker) from _Joerg Arndt_, Dec 26 2015

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 August 29 11:24 EDT 2024. Contains 375516 sequences. (Running on oeis4.)