OFFSET
3,1
LINKS
Wikipedia, Prism (geometry)
FORMULA
a(n) = round(n+n*cot(Pi/n)/2).
EXAMPLE
a(3) = 4; the surface area of a right prism whose base is an equilateral triangle with unit side lengths and height is 3+sqrt(3)/2 = 3.8660..., which rounds up to 4.
a(4) = 6 (surface area of a cube with unit side length and height).
MATHEMATICA
Table[Round[n + n*Cot[Pi/n]/2], {n, 3, 100}]
CROSSREFS
KEYWORD
nonn
AUTHOR
Wesley Ivan Hurt, May 04 2021
STATUS
approved