OFFSET
1,1
COMMENTS
a(n) is the number of edges of the nanostar dendrimer D[n] from the Ghorbani et al. reference.
LINKS
Colin Barker, Table of n, a(n) for n = 1..1000
M. Ghorbani and M. Songhori, Some topological indices of nanostar dendrimers, Iranian J. Math. Chemistry, 1, No. 2, 2010, 57-65.
Index entries for linear recurrences with constant coefficients, signature (3,-2).
FORMULA
From Colin Barker, May 15 2018: (Start)
G.f.: 3*x*(7 + 8*x) / ((1 - x)*(1 - 2*x)).
a(n) = 3*a(n-1) - 2*a(n-2) for n>2.
(End)
MAPLE
seq(33*2^n-45, n = 1 .. 40);
MATHEMATICA
Rest@ CoefficientList[Series[3 x (7 + 8 x)/((1 - x) (1 - 2 x)), {x, 0, 35}], x] (* or *)
LinearRecurrence[{3, -2}, {21, 87}, 35] (* or *)
Array[33*2^# - 45 &, 35] (* Michael De Vlieger, May 15 2018 *)
PROG
(GAP) List([1..40], n->33*2^n-45); # Muniru A Asiru, May 15 2018
(PARI) a(n) = 33*2^n - 45; \\ Altug Alkan, May 15 2018
(PARI) Vec(3*x*(7 + 8*x) / ((1 - x)*(1 - 2*x)) + O(x^40)) \\ Colin Barker, May 15 2018
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Emeric Deutsch, May 15 2018
STATUS
approved