This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.
%I A265755 #15 Nov 10 2017 08:39:33 %S A265755 0,0,0,1,1,0,1,2,3,1,4,5,9,5,14,14,28,19,47,42,89,66,155,131,286,221, %T A265755 507,417,924,728,1652,1341,2993,2380,5373,4334,9707,7753,17460,14041, %U A265755 31501,25213,56714,45542,102256,81927,184183,147798,331981,266110,598091,479779,1077870,864201,1942071,1557649 %N A265755 a(n) = a(n-1) + a(n-2) if n is even and a(n) = a(n-3) + a(n-4) if n is odd, with a(0) = a(1) = a(2) = 0 and a(3) = 1. %H A265755 Colin Barker, <a href="/A265755/b265755.txt">Table of n, a(n) for n = 0..1000</a> %H A265755 <a href="/index/Rec#order_06">Index entries for linear recurrences with constant coefficients</a>, signature (0,1,0,2,0,-1). %F A265755 From _Colin Barker_, Dec 16 2015: (Start) %F A265755 a(n) = a(n-2) + 2*a(n-4) - a(n-6) for n>5. %F A265755 G.f.: x^3*(1+x-x^2) / (1-x^2-2*x^4+x^6). %F A265755 (End) %e A265755 a(8) = a(7) + a(6) %e A265755 = a(4) + a(3) + a(5) + a(4) %e A265755 = (a(3) + a(2)) + a(3) + (a(2) + a(1)) + (a(3) + a(2)) %e A265755 = 1 + 1 + 0 + 1 %e A265755 = 3 %t A265755 a[0] = a[1] = a[2] = 0; a[3] = 1; a[n_] := a[n] = If[EvenQ@ n, a[n - 1] + a[n - 2], a[n - 3] + a[n - 4]]; Table[a@ n, {n, 0, 55}] (* _Michael De Vlieger_, Dec 15 2015 *) %t A265755 nxt[{n_,a_,b_,c_,d_}]:={n+1,b,c,d,If[OddQ[n],c+d,a+b]}; NestList[nxt,{1,0,0,0,1},60][[All,2]] (* or *) LinearRecurrence[{0,1,0,2,0,-1},{0,0,0,1,1,0},60] (* _Harvey P. Dale_, Nov 10 2017 *) %o A265755 (PARI) concat(vector(3), Vec(x^3*(1+x-x^2)/(1-x^2-2*x^4+x^6) + O(x^70))) \\ _Colin Barker_, Dec 16 2015 %Y A265755 Interleaves A006053 and A052547, with an extra leading 0. %Y A265755 A187066 with even values and odd values swapped and an extra leading 0. %K A265755 nonn,easy %O A265755 0,8 %A A265755 _Nicholas Drozd_, Dec 15 2015 %E A265755 More terms from _Michael De Vlieger_, Dec 15 2015