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 A045950 #45 Sep 30 2024 12:55:20 %S A045950 0,10,59,177,394,740,1245,1939,2852,4014,5455,7205,9294,11752,14609, %T A045950 17895,21640,25874,30627,35929,41810,48300,55429,63227,71724,80950, %U A045950 90935,101709,113302,125744,139065,153295,168464,184602,201739,219905,239130,259444 %N A045950 Number of upward triangles in a Star of David matchstick arrangement of size n. %H A045950 Colin Barker, <a href="/A045950/b045950.txt">Table of n, a(n) for n = 0..1000</a> %H A045950 Stefano Spezia, <a href="/A045950/a045950.jpg">Illustration for n = 3</a>. %H A045950 <a href="/index/Rec#order_04">Index entries for linear recurrences with constant coefficients</a>, signature (4,-6,4,-1). %F A045950 a(n) = n*(10*n^2+9*n+1)/2. %F A045950 From _Colin Barker_, Dec 02 2014: (Start) %F A045950 a(n) = 4*a(n-1) - 6*a(n-2) + 4*a(n-3) - a(n-4) for n > 3. %F A045950 G.f.: x*(x^2+19*x+10) / (x-1)^4. (End) %F A045950 E.g.f.: exp(x)*x*(20 + 39*x + 10*x^2)/2. - _Stefano Spezia_, Sep 18 2024 %t A045950 A045950[n_] := n*(n*(10*n + 9) + 1)/2; Array[A045950, 50, 0] (* or *) %t A045950 LinearRecurrence[{4, -6, 4, -1}, {0, 10, 59, 177}, 50] (* _Paolo Xausa_, Sep 18 2024 *) %o A045950 (PARI) concat(0, Vec(x*(x^2+19*x+10)/(x-1)^4 + O(x^100))) \\ _Colin Barker_, Dec 02 2014 %Y A045950 Cf. A299965. %K A045950 nonn,easy %O A045950 0,2 %A A045950 _R. K. Guy_ %E A045950 Name clarified by _Paolo Xausa_, Sep 19 2024