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 A196787 #30 Apr 03 2019 11:10:59 %S A196787 1,1,1,3,6,12,24,46,87,163,303,561,1036,1910,3518,6476,11917,21925, %T A196787 40333,74191,136466,251008,461684,849178,1561891,2872775,5283867, %U A196787 9718557,17875224,32877674,60471482,111224408,204573593,376269513,692067545 %N A196787 a(n) = 3*a(n-1) - 2*a(n-2) - a(n-4) + a(n-5) with initial terms 1, 1, 1, 3, 6. %H A196787 <a href="/index/Rec#order_05">Index entries for linear recurrences with constant coefficients</a>, signature (3,-2,0,-1,1). %F A196787 a(1)=1, a(2)=1, a(3)=1; a(n) = a(n-1) + a(n-2) + a(n-3) + n - 4 for n >= 4. %F A196787 G.f.: x*(-1+2*x-2*x^3) / ((x-1)^2*(x^3+x^2+x-1)). %e A196787 a(7) = (a(6): 12) + (a(5): 6) + (a(4): 3) + (n-4: 3) = 24. %t A196787 LinearRecurrence[{3, -2, 0, -1, 1}, {1, 1, 1, 3, 6}, 42] (* _T. D. Noe_, Oct 06 2011 *) %o A196787 (PARI) x='x+O('x^43); Vec(x*(-1+2*x-2*x^3) / ((x-1)^2*(x^3+x^2+x-1))) \\ _Georg Fischer_, Apr 03 2019 %K A196787 nonn,easy %O A196787 1,4 %A A196787 _Aditya Subramanian_, Oct 06 2011 %E A196787 Better name from _Charles R Greathouse IV_, Oct 06 2011 %E A196787 Edited and corrected by _Georg Fischer_, Apr 03 2019