cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A064313 Integer part of area of a regular polygon with n sides each of length 1.

This page as a plain text file.
%I A064313 #11 Mar 11 2024 11:42:22
%S A064313 0,0,1,1,2,3,4,6,7,9,11,13,15,17,20,22,25,28,31,34,38,41,45,49,53,57,
%T A064313 62,66,71,76,81,86,91,97,102,108,114,120,127,133,140,146,153,160,168,
%U A064313 175,183,190,198,206,214,223,231,240,249,258,267,276,286,295,305,315
%N A064313 Integer part of area of a regular polygon with n sides each of length 1.
%C A064313 Usually (perhaps always?) floor(n^2/(4*Pi) - Pi/12) for a polygon of circumference n. Note that the area of a circle with circumference C is C^2/(4*Pi).
%H A064313 Harry J. Smith, <a href="/A064313/b064313.txt">Table of n, a(n) for n = 2..1000</a>
%F A064313 a(n) = floor(n/(4*tan(Pi/n))).
%e A064313 Areas (starting from n=2) are: 0, 0.433... (equilateral triangle), 1 (square), 1.720... (pentagon), 2.598... (hexagon), 3.633... (heptagon), 4.828... (octagon), etc., so sequence starts 0, 0, 1, 1, 2, 3, 4, etc.
%p A064313 A064313 := proc(n) RETURN(floor((n/4)*cot(Pi/n))) end:
%t A064313 Table[ Floor[(n/4)*Cot[Pi/n]], {n, 2, 75} ]
%o A064313 (PARI) { for (n=2, 1000, if (n>2, a=n\(4*tan(Pi/n)), a=0); write("b064313.txt", n, " ", a) ) } \\ _Harry J. Smith_, Sep 11 2009
%Y A064313 Cf. A134030.
%K A064313 nonn
%O A064313 2,5
%A A064313 _Henry Bottomley_, Oct 15 2001