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 A135365 #25 Mar 19 2025 18:44:05 %S A135365 1,3,9,11,33,99,313,939,2817,8435,25305,75915,227761,683283,2049849, %T A135365 6149531,18448593,55345779,166037353,498112059,1494336177,4483008515, %U A135365 13449025545,40347076635,121041229921,363123689763,1089371069289,3268113207851,9804339623553 %N A135365 a(n) = 3*a(n-1) - a(n-3) + 3*a(n-4), with initial values 1,3,9,11. %H A135365 Colin Barker, <a href="/A135365/b135365.txt">Table of n, a(n) for n = 0..1000</a> %H A135365 <a href="/index/Rec#order_04">Index entries for linear recurrences with constant coefficients</a>, signature (3,0,-1,3). %F A135365 From _Richard Choulet_, Jan 02 2008: (Start) %F A135365 a(n) = (1/7)*3^(n+1) + (4/3)*(-1)^n - (16/21)*cos(Pi*n/3) + (16*sqrt(3)/7)*sin(Pi*n/3). %F A135365 a(n) = (1/7)*3^(n+1) + (1/7)*[4; 12; 36; -4; -12; -36] for n>=0. (End) %F A135365 G.f.: (1 - 15*x^3) / ((1+x)*(1-3*x)*(1-x+x^2)). - _Colin Barker_, Feb 10 2016 %t A135365 Join[{1, 3}, LinearRecurrence[{3, 0, -1, 3}, {9, 11, 33, 99}, 25]] (* _G. C. Greubel_, Oct 11 2016 *) %o A135365 (PARI) Vec((1-15*x^3)/((1+x)*(1-3*x)*(1-x+x^2)) + O(x^40)) \\ _Colin Barker_, Feb 10 2016 %Y A135365 Cf. A018282, A027894, A106305. %K A135365 nonn,easy %O A135365 0,2 %A A135365 _Paul Curtz_, Dec 09 2007