A061252 a(n) = 16^n - 15^n.
0, 1, 31, 721, 14911, 289201, 5386591, 97576081, 1732076671, 30276117361, 522861237151, 8942430185041, 151728638820031, 2557404559011121, 42864668012537311, 715027614225987601, 11878335717996660991
Offset: 0
Links
- Index entries for linear recurrences with constant coefficients, signature (31,-240).
Programs
-
Mathematica
Table[16^n-15^n,{n,0,20}] (* or *) LinearRecurrence[{31,-240},{0,1},20] (* Harvey P. Dale, Jan 23 2021 *)
-
PARI
a(n) = 16^n - 15^n; \\ Michel Marcus, Aug 26 2013
Formula
a(0)=0, a(n) = 15*a(n-1) + 16^(n-1). - Vincenzo Librandi, Feb 09 2011
a(0)=0, a(1)=1, a(n) = 31*a(n-1) - 240*a(n-2). - Vincenzo Librandi, Feb 09 2011
Comments