A154021 a(n+2) = 16*a(n+1) - a(n), with a(1)=0, a(2)=4.
0, 4, 64, 1020, 16256, 259076, 4128960, 65804284, 1048739584, 16714029060, 266375725376, 4245297576956, 67658385505920, 1078288870517764, 17184963542778304, 273881127813935100, 4364913081480183296
Offset: 1
Links
- Vincenzo Librandi, Table of n, a(n) for n = 1..800
- Index entries for linear recurrences with constant coefficients, signature (16,-1).
Programs
-
Magma
I:=[0,4]; [n le 2 select I[n] else 16*Self(n-1)-Self(n-2): n in [1..30]]; // Vincenzo Librandi, Feb 25 2012
-
Mathematica
Nest[Append[#,16Last[#]-#[[-2]]]&,{0,4},20] (* or *) Rest[CoefficientList[Series[4x^2/(1-16x+x^2), {x,0,22}], x]] (* Harvey P. Dale, Apr 17 2011 *) LinearRecurrence[{16, -1}, {0, 4}, 20] (* T. D. Noe, Apr 17 2011 *)
Formula
Extensions
375725376 replaced by 266375725376 - R. J. Mathar, Jan 07 2009
Edited by N. J. A. Sloane, Jun 23 2010 at the suggestion of Joerg Arndt.
Comments