OFFSET
0,1
COMMENTS
a(2) has been checked by the direct computation of the distance matrix (with Maple).
REFERENCES
A. Heydari, I. Gutman, On the terminal index of thorn graphs, Kragujevac J. Sci., 32, 2010, 57-64.
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (13,-64,148,-160,64).
FORMULA
a(n) = 18 + 2^n*(66+30*n) + 36*n*4^n.
G.f.: 6*(14-123*x+408*x^2-560*x^3+288*x^4)/((1-x)*(1-2*x)^2*(1-4*x)^2).
a(0)=84, a(1)=354, a(2)=1674, a(3)=8178, a(4)=39858, a(n)=13*a(n-1)- 64*a(n-2)+ 148*a(n-3)- 160*a(n-4)+64*a(n-5). - Harvey P. Dale, Jan 09 2016
MAPLE
a := proc (n) options operator, arrow: 18+2^n*(66+30*n)+36*4^n*n end proc: seq(a(n), n = 0 .. 25);
MATHEMATICA
CoefficientList[Series[6 (14 - 123 x + 408 x^2 - 560 x^3 + 288 x^4) / ((1 - x) (1 - 2 x)^2 (1 - 4 x)^2), {x, 0, 30}], x] (* Vincenzo Librandi, Aug 04 2013 *)
LinearRecurrence[{13, -64, 148, -160, 64}, {84, 354, 1674, 8178, 39858}, 30] (* Harvey P. Dale, Jan 09 2016 *)
PROG
(Magma) [18+2^n*(66+30*n)+36*n*4^n: n in [0..25]]; // Vincenzo Librandi, Aug 04 2013
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Emeric Deutsch, Aug 02 2013
EXTENSIONS
Typo in formula fixed by Vincenzo Librandi, Aug 04 2013
STATUS
approved