A335807 Number of vertices in the n-th simplex graph of the complete graph on three vertices (K_3).
3, 8, 21, 54, 140, 365, 954, 2496, 6533, 17102, 44772, 117213, 306866, 803384, 2103285, 5506470, 14416124, 37741901, 98809578, 258686832, 677250917, 1773065918, 4641946836, 12152774589, 31816376930, 83296356200, 218072691669, 570921718806, 1494692464748, 3913155675437
Offset: 0
Examples
The simplex graph of K_3 will have 8 vertices: 1 for the 0-clique in K_3, 3 for the 1-cliques in K_3, 3 for the 2-cliques in K_3, and 1 for the 3-clique in K_3. It also has size 12. In the simplex graph, each vertex corresponding to a 1-clique in K_3 links to the simplex graph vertex corresponding to a 0-clique in K_3, creating 3 edges. Also, each simplex graph vertex corresponding to a 2-clique in K_3 links to 2 simplex graph vertices corresponding to a 1-clique in K_3, producing 6 more edges. Finally, the single vertex in the simplex graph corresponding to the 3-clique in K_3 links to each simplex graph vertex corresponding to a 2-clique in K_3, producing 3 more edges, for a total of 12 edges in the 1st simplex graph of K_3. Using the recurrence relation, we can calculate |V|(2) = |V|(1) + |E|(1) + 1 = 8 + 12 + 1 = 21. Therefore, the 2nd simplex graph of K_3 will have 21 vertices.
Links
- Wikipedia, Simplex Graph
- Index entries for linear recurrences with constant coefficients, signature (4,-4,1).
Programs
-
JavaScript
//Define order and size of 1st simplex graph of K_3 var order = [8] var size = [12]//Calculate the orders of the 1st through (numberOfTerms + 1)th simplex graphs of K_3 function simplexSequenceOrder (numberOfTerms) { for (var i = 1; i <= numberOfTerms; i++) { order[i] = order[i-1] + size[i-1] + 1; size [i] = order[i-1] + 2*size[i-1]; } return order.join(); }
-
PARI
Vec((3 - 4*x + x^2 - x^3) / ((1 - x)*(1 - 3*x + x^2)) + O(x^28)) \\ Colin Barker, Aug 16 2020
Formula
From Colin Barker, Aug 15 2020: (Start)
G.f.: (3 - 4*x + x^2 - x^3) / ((1 - x)*(1 - 3*x + x^2)).
a(n) = 4*a(n-1) - 4*a(n-2) + a(n-3) for n>3.
(End)
a(n) = (10 + (5 - 11*sqrt(5))*(1/2*(3 - sqrt(5)))^n + (1/2*(3 + sqrt(5)))^n*(5 + 11*sqrt(5)))/10 for n > 0. - Stefano Spezia, Aug 15 2020
a(n) = 3*a(n-1) - a(n-2) - 1 for n >= 3. - James Turbett, Aug 18 2020
a(n) = 1+A055267(n), n>0. - R. J. Mathar, Mar 06 2022
Comments