OFFSET
0,1
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 0..2000
Radim Hosek, Construction and shape optimization of simplical meshes in d-dimensional space, arXiv preprint arXiv:1606.09113 [math.MG], 2016.
Index entries for linear recurrences with constant coefficients, signature (3,-3,1).
FORMULA
G.f.: (2 + 7*x^3 - 3*x^4)/(1 - x)^3. - Vincenzo Librandi, Jul 08 2017
E.g.f.: 2 + 3*x + 3*exp(x)*x*(1 + x). - Stefano Spezia, Dec 17 2022
MATHEMATICA
Join[{2, 6}, Table[3 n^2, {n, 2, 50}]] (* or *) {2, 6}~Join~LinearRecurrence[{3, -3, 1}, {12, 27, 48}, 50] (* Vincenzo Librandi, Jul 08 2017 *)
PROG
(Magma) [2, 6] cat [3*n^2: n in [2..60]]; // Vincenzo Librandi, Jul 08 2017
(PARI) a(n)=3*n^2+if(n<2, n+2) \\ Charles R Greathouse IV, Oct 21 2022
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
N. J. A. Sloane, Jul 07 2017
STATUS
approved