OFFSET
0,2
LINKS
FORMULA
G.f.: (1-x-2x^2)/((1-x)(1-4x)(1+2x)); a(n)=3a(n-1)+6a(n-2)-8a(n-3); a(n)=(5/9)4^n+(2/9)(-2)^n+2/9.
a(0)=1, a(1)=2, a(2)=10, a(n)=3*a(n-1)+6*a(n-2)-8*a(n-3). - Harvey P. Dale, Apr 11 2013
MATHEMATICA
Total/@Partition[LinearRecurrence[{1, 2}, {0, 1}, 40]^2, 2, 1] (* or *) LinearRecurrence[ {3, 6, -8}, {1, 2, 10}, 40] (* Harvey P. Dale, Apr 11 2013 *)
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Paul Barry, Jul 17 2005
STATUS
approved