%I #56 Sep 08 2022 08:46:16
%S 12,42,78,114,150,186,222,258,294,330,366,402,438,474,510,546,582,618,
%T 654,690,726,762,798,834,870,906,942,978,1014,1050,1086,1122,1158,
%U 1194,1230,1266,1302,1338,1374,1410,1446,1482,1518,1554,1590,1626,1662,1698,1734
%N Triangular Star of David numbers (the figurate number of triangles framing a hexagram: a(0) = 12; thereafter a(n) = 36*n+6).
%C Also known as unitary triangular hexagram numbers, according to the author.
%C After a(0), the sum of inner and outer perimeters of triangle edges forming each hexagram is [36n - 6], always 12 less than the number of triangles framing the hexagram. Where a(0)=12, the perimeter is also 12.
%C Compare with A270545, the number of equilateral triangle units forming perimeters of equilateral triangle, which follows the same application.
%H Colin Barker, <a href="/A270700/b270700.txt">Table of n, a(n) for n = 0..1000</a>
%H Peter M. Chema, <a href="/A270700/a270700.pdf">Illustration of a(2)=78</a>
%H Peter M. Chema, <a href="/A270700/a270700_2.png">Illustration of initial terms [0 through 5]</a>
%H <a href="/index/Rec#order_02">Index entries for linear recurrences with constant coefficients</a>, signature (2,-1).
%F a(0) = 12; thereafter, a(n) = 36*n + 6.
%F a(n) = 2*a(n-1)-a(n-2) for n>2. - _Colin Barker_, Mar 22 2016
%F G.f.: 6*(1+x)*(2+x) / (1-x)^2. - _Colin Barker_, Mar 22 2016
%e Illustration of initial terms are found in the three above links.
%t CoefficientList[Series[6 (1 + x) (2 + x)/(1 - x)^2, {x, 0, 40}], x] (* _Michael De Vlieger_, Mar 23 2016 *)
%t Join[{12},36*Range[50]+6] (* or *) LinearRecurrence[{2,-1},{12,42,78},50] (* _Harvey P. Dale_, Nov 03 2016 *)
%o (PARI) a(n) = if (!n, 12, 36*n + 6); \\ _Michel Marcus_, Mar 22 2016
%o (PARI) Vec(6*(1+x)*(2+x)/(1-x)^2 + O(x^50)) \\ _Colin Barker_, Mar 22 2016
%o (Magma) [12] cat [36*n + 6: n in [1..50]]; // _Vincenzo Librandi_, Mar 28 2016
%Y Cf. A270545, A045945, A045943 and A045946.
%K nonn,easy
%O 0,1
%A _Peter M. Chema_, Mar 21 2016
%E More terms from _Vincenzo Librandi_, Mar 28 2016
|