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 A240525 #36 Feb 28 2025 05:58:28 %S A240525 5,19,68,268,1040,4144,16448,65728,262400,1049344,4195328,16780288, %T A240525 67112960,268447744,1073758208,4295016448,17179934720,68719673344, %U A240525 274878169088,1099512414208,4398047559680,17592189190144,70368748371968,281474989293568,1125899923619840 %N A240525 a(n) = 2^(n-2)*(2^(n+4)-(-1)^n+5). %H A240525 Vincenzo Librandi, <a href="/A240525/b240525.txt">Table of n, a(n) for n = 0..200</a> %H A240525 <a href="/index/Rec#order_03">Index entries for linear recurrences with constant coefficients</a>, signature (4,4,-16). %F A240525 G.f.: (5-x-28*x^2)/(1-4*x-4*x^2+16*x^3). %F A240525 a(n) = 4*a(n-1) + 4*a(n-2)- 16*a(n-3) with n>2, a(0)=5, a(1)=19, a(2)=68. %F A240525 a(n) = (5*2^n-(-2)^n)/4+4^(n+1) = A084221(n)+A000302(n+1). %t A240525 CoefficientList[Series[(5 - x - 28 x^2)/(1 - 4 x - 4 x^2 + 16 x^3), {x, 0, 33}], x] %o A240525 (Magma) [2^(n-2)*(2^(n+4)-(-1)^n+5): n in [0..25]]; %o A240525 (Magma) I:=[5,19,68]; [n le 3 select I[n] else 4*Self(n-1)+4*Self(n-2)-16*Self(n-3): n in [1..30]]; %o A240525 (PARI) a(n)=(2^(n+4)-(-1)^n+5)<<(n-2) \\ _Charles R Greathouse IV_, Aug 26 2014 %Y A240525 Cf. A000302, A084221. %K A240525 nonn,easy %O A240525 0,1 %A A240525 _Vincenzo Librandi_, Apr 07 2014