This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.
%I A241219 #32 Feb 16 2025 08:33:21 %S A241219 0,21,171,666,1830,4095,8001,14196,23436,36585,54615,78606,109746, %T A241219 149331,198765,259560,333336,421821,526851,650370,794430,961191, %U A241219 1152921,1371996,1620900,1902225,2218671,2573046,2968266,3407355,3893445,4429776,5019696,5666661 %N A241219 Number of ways to choose two points on a centered hexagonal grid of size n. %C A241219 A centered hexagonal grid of size n is a grid with A003215(n-1) points forming a hexagonal lattice. %C A241219 a(n) is also the number of segments on a centered hexagonal grid of size n. %H A241219 Vincenzo Librandi, <a href="/A241219/b241219.txt">Table of n, a(n) for n = 1..1000</a> %H A241219 Eric Weisstein's World of Mathematics, <a href="https://mathworld.wolfram.com/HexNumber.html">Hex Number</a>. %H A241219 <a href="/index/Rec#order_05">Index entries for linear recurrences with constant coefficients</a>, signature (5,-10,10,-5,1). %F A241219 a(n) = binomial(A003215(n-1), 2). %F A241219 = binomial(3*n^2-3*n+1, 2). %F A241219 = 3/2*n*(n-1)*(3*n^2-3*n+1). %F A241219 = 9/2*n^4-9*n^3+6*n^2-3/2*n. %F A241219 G.f.: -3*x^2*(7*x^2+22*x+7) / (x-1)^5. - _Colin Barker_, Apr 18 2014 %F A241219 Sum_{n>=2} 1/a(n) = 8/3 - 2*Pi*tanh(Pi/(2*sqrt(3)))/sqrt(3). - _Amiram Eldar_, Feb 17 2024 %p A241219 seq(binomial(3*n^2-3*n+1, 2),n=1..34); # _Martin Renner_, Apr 27 2014 %p A241219 op(PolynomialTools[CoefficientList](convert(series(-3*x^2*(7*x^2+22*x+7)/(x-1)^5, x=0, 35), polynom), x)[2..35]); # _Martin Renner_, Apr 27 2014 %t A241219 CoefficientList[Series[-3 x^2 (7 x^2 + 22 x + 7)/(x - 1)^5, {x, 0, 50}], x] (* _Vincenzo Librandi_, Apr 19 2014 *) %o A241219 (PARI) concat(0, Vec(-3*x^2*(7*x^2+22*x+7) / (x-1)^5 + O(x^100))) \\ _Colin Barker_, Apr 18 2014 %o A241219 (Magma) [Binomial(3*n^2-3*n+1, 2): n in [1..35]]; // _Vincenzo Librandi_, Apr 19 2014 %Y A241219 Cf. A003215, A083374. %K A241219 nonn,easy %O A241219 1,2 %A A241219 _Martin Renner_, Apr 17 2014 %E A241219 Typo in Mathematica program fixed by _Martin Renner_, Apr 27 2014