A386319 Triangle read by rows where row n is the start, corner and end vertex numbers of a triangular spiral with n sides on a triangular grid, starting from 1 and working inwards (0 <= k <= n).
1, 1, 1, 1, 2, 3, 1, 3, 5, 6, 1, 4, 7, 9, 10, 1, 5, 9, 12, 14, 15, 1, 6, 11, 15, 18, 20, 21, 1, 7, 13, 18, 22, 25, 27, 28, 1, 8, 15, 21, 26, 30, 33, 35, 36, 1, 9, 17, 24, 30, 35, 39, 42, 44, 45, 1, 10, 19, 27, 34, 40, 45, 49, 52, 54, 55, 1, 11, 21, 30, 38, 45, 51, 56, 60, 63, 65, 66, 1, 12, 23, 33, 42, 50, 57, 63, 68, 72, 75, 77, 78
Offset: 0
Examples
Triangle begins: -------------------------------------- n\k 0 1 2 3 4 5 6 7 -------------------------------------- 0| 1; 1| 1, 1; 2| 1, 2, 3; 3| 1, 3, 5, 6; 4| 1, 4, 7, 9, 10; 5| 1, 5, 9, 12, 14, 15; 6| 1, 6, 11, 15, 18, 20, 21; 7| 1, 7, 13, 18, 22, 25, 27, 28; ... For n = 2 the spiral is 2 sides of length 1 so row [1, 2, 3], 1 --- 2 / 3 For n = 4 the spiral is: 1 2 3 4 9 10 5 8 6 7 The start, corner and end vertices are [1, 4, 7, 9, 10].
Crossrefs
Programs
-
Mathematica
T[n_,k_]:=If[k==0,1,k(2n-k+1)/2];Table[T[n,k],{n,0,12},{k,0,n}]//Flatten (* James C. McMahon, Jul 31 2025 *)
Formula
T(n,0) = 1.
T(n,k) = k*(2*n - k + 1)/2 for k >= 1.
Comments