A180666 Golden Triangle sums: a(n)=a(n-4)+A001654(n) with a(0)=0, a(1)=1, a(2)=2 and a(3)=6.
0, 1, 2, 6, 15, 41, 106, 279, 729, 1911, 5001, 13095, 34281, 89752, 234971, 615165, 1610520, 4216400, 11038675, 28899630, 75660210, 198081006, 518582802, 1357667406, 3554419410, 9305590831, 24362353076, 63781468404
Offset: 0
Links
- Index entries for linear recurrences with constant coefficients, signature (2,2,-1,1,-2,-2,1).
Programs
-
Maple
nmax:=27: with(combinat): for n from 0 to nmax do A001654(n):=fibonacci(n)*fibonacci(n+1) od: a(0):=0: a(1):=1: a(2):=2: a(3):=6: for n from 4 to nmax do a(n):=a(n-4)+A001654(n) od: seq(a(n),n=0..nmax); A180666 := proc(n) option remember; if n <=3 then op(n+1,[0,1,2,6]) ; else procname(n-4)+A001654(n) ; end if; end proc: seq(A180666(n),n=0..100 ) ; # R. J. Mathar, Aug 18 2016
-
Mathematica
Take[Total@{#, PadLeft[Drop[#, -4], Length@ #]}, Length@ # - 4] &@ Table[Times @@ Fibonacci@ {n, n + 1}, {n, 0, 31}] (* or *) CoefficientList[Series[(-x)/((x^2 - 3 x + 1) (x - 1) (x + 1)^2 (x^2 + 1)), {x, 0, 27}], x] (* Michael De Vlieger, Aug 18 2016 *)
Comments