# Greetings from The On-Line Encyclopedia of Integer Sequences! http://oeis.org/ Search: id:a056109 Showing 1-1 of 1 %I A056109 #106 Jul 19 2024 08:21:05 %S A056109 1,6,17,34,57,86,121,162,209,262,321,386,457,534,617,706,801,902,1009, %T A056109 1122,1241,1366,1497,1634,1777,1926,2081,2242,2409,2582,2761,2946, %U A056109 3137,3334,3537,3746,3961,4182,4409,4642,4881,5126,5377,5634,5897,6166,6441 %N A056109 Fifth spoke of a hexagonal spiral. %C A056109 Squared distance from (0,0,-1) to (n,n,n) in R^3. - _James R. Buddenhagen_, Jun 15 2013 %H A056109 Vincenzo Librandi, Table of n, a(n) for n = 0..1000 %H A056109 Henry Bottomley, Illustration of initial terms %H A056109 Tanya Khovanova, Recursive Sequences %H A056109 G. Nebe and N. J. A. Sloane, Home page for hexagonal (or triangular) lattice A2 %H A056109 Leo Tavares, Triple Diamond Illustration %H A056109 Index entries for linear recurrences with constant coefficients, signature (3,-3,1). %F A056109 a(n) = 3n^2+2n+1 = a(n-1)+6n-1 = 2a(n-1)-a(n-2)+6 = 3a(n-1)-3a(n-2)+a(n-3) = A056105(n)+4n = A056106(n)+3n = A056107(n)+2n = A056108(n)+n = A003215(n)-n. %F A056109 G.f.: (1+3*x+2*x^2)/(1-3*x+3*x^2-x^3). - _Colin Barker_, Jan 04 2012 %F A056109 G.f.: (1 + x) * (1 + 2*x) / (1 - x)^3. - _Michael Somos_, Feb 04 2012 %F A056109 a(n) = A008810(3*n + 1) = A056105(-n). - _Michael Somos_, Aug 03 2006 %F A056109 E.g.f.: exp(x)*(1 + 5*x + 3*x^2). - _Stefano Spezia_, Oct 06 2018 %F A056109 a(n) = A000290(n+1) + 2*A000290(n). - _Leo Tavares_, May 29 2023 %F A056109 a(n) = A069894(n) - A000290(n+1). - _Jarrod G. Sage_, Jul 19 2024 %p A056109 seq(coeff(series(n!*(exp(x)*(3*x^2+5*x+1)),x,n+1), x, n), n = 0 .. 50); # _Muniru A Asiru_, Oct 07 2018 %t A056109 Table[3 n^2 + 2 n + 1, {n, 0, 100}] (* _Vincenzo Librandi_, Mar 15 2013 *) %t A056109 LinearRecurrence[{3,-3,1},{1,6,17},60] (* _Harvey P. Dale_, Mar 28 2019 *) %o A056109 (PARI) {a(n) = 3*n^2 + 2*n + 1}; /* _Michael Somos_, Aug 03 2006 */ %o A056109 (PARI) Vec((1+3*x+2*x^2)/(1-3*x+3*x^2-x^3)+O(x^100)) \\ _Stefano Spezia_, Oct 17 2018 %o A056109 (Magma) [3*n^2 + 2*n + 1: n in [0..50]]; // _Vincenzo Librandi_, Mar 15 2013 %o A056109 (GAP) List([0..50],n->3*n^2+2*n+1); # _Muniru A Asiru_, Oct 07 2018 %o A056109 (Python) for n in range(0, 100): print(int(3*n**2 + 2*n + 1), end=', ') # _Stefano Spezia_, Oct 16 2018 %Y A056109 Cf. A008810, A122430 (prime terms). %Y A056109 Other spokes: A003215, A056105, A056106, A056107, A056108. %Y A056109 Other spirals: A054552. %Y A056109 Cf. A000290. %K A056109 easy,nonn %O A056109 0,2 %A A056109 _Henry Bottomley_, Jun 09 2000 # Content is available under The OEIS End-User License Agreement: http://oeis.org/LICENSE