OFFSET
3,2
LINKS
Kival Ngaokrajang, Illustration of initial terms
FORMULA
a(n) = floor((r1(n)/r2(n))^2) where r1(n) = (s(n)/2)*sqrt((2 - s(n))/(2 + s(n))) and r2(n) = (2 - c(n))/4 with s(n) = 2*sin(Pi/n), the side length (length unit 1), and c(n) = 2*cos(Pi/n), the length ratio of the smallest diagonal and the side of a regular n-gon. [Rewritten by Wolfdieter Lang, Jul 02 2014]
PROG
(PARI)
{
for (n=3, 100,
c=2*sin(Pi/n);
s=(2+c)/2;
r1=(((s-1)^2*(s-c))/s)^(1/2);
b=Pi*(n-2)/(2*n);
r2=(1-sin(b))/2;
a=floor(r1^2/r2^2);
print1(a, ", ")
)
}
CROSSREFS
KEYWORD
nonn
AUTHOR
Kival Ngaokrajang, Jun 20 2014
STATUS
approved