User:BZAW31559/sandbox/figurate

n = 365
Triangular: $\frac{365(365 + 1)}{2} = \frac{365 \times 366}{2} = \frac{133590}{2} = 66795$

Square: $365^2 = 133225$

Pentagonal: $\frac{3(365^2) - 365}{2} = \frac{399310}{2} = 199655$

Hexagonal: $365(2(365) - 1) = 266085$

Heptagonal: $\frac{5(365^2) - 3(365)}{2} = \frac{665030}{2} = 332515$

Octagonal: $3(365^2) - 2(365) = 398945$

Nonagonal: $\frac{365(7(365)-5)}{2} = \frac{930750}{2} = 465375$

Decagonal: $4(365^2) - 3(365) = 531805$

Dodecagonal: $$5(365^2) - 4(365) = 664665$$

Centered triangular: $\frac{3(365^2) + 3(365) + 2}{2} = \frac{400772}{2} = 200386$

Centered square: $365^2 + (365-1)^2 = 265721$

Centered pentagonal: $\frac{5(365)^2 + 5(365) + 2}{2} = \frac{667952}{2} = 333976$

Centered hexagonal: $3(365)(365 - 1) + 1 = 398581$

Centered heptagonal: $\frac{7(365^2) - 7(365) + 2}{2} = \frac{930022}{2} = 465011$

Centered octaagonal: $(2(365) - 1)^2 = 531441$

Centered nonagonal: $\frac{(3(365) - 2)(3(365) - 1)}{2} = \frac{1195742}{2} = 597871$

Centered decagonal: $5(365)^2 + 5(365) + 1 = 667951$

Star: $6(365)(365 - 1) + 1 = 797161$

Cube: $365^3 = 48627125$