OFFSET
1,1
COMMENTS
By definition, the diameter of a regular k-gon is the length of its longest diagonal.
All terms are odd; see Formula section. - Jon E. Schoenfield, Mar 29 2021
FORMULA
a(n) = 1 + 2*floor((1/2)*(1 + sqrt((Pi^3/24)/(Pi-floor(Pi*10^(n-1))/10^(n-1))))). - Jon E. Schoenfield, Mar 28 2021
EXAMPLE
An equilateral triangle (k=3) has no diagonals, and a square (k=4) has perimeter/diameter = sqrt(8) = 2.828427..., but a regular pentagon (k=5) has perimeter/diameter = (5/2)*(sqrt(5) - 1) = 3.090169..., whose first digit (3) matches that of Pi = 3.141592..., so a(1)=5. - Jon E. Schoenfield, Mar 31 2021
This ratio for a regular 7-gon (heptagon) is 3.115293... (A280533), where 3.1 equals the first two digits of Pi's decimal expansion. Because the first two digits are not 3.1 for k < 7, a(2) = 7.
CROSSREFS
KEYWORD
nonn,base,more
AUTHOR
Rick L. Shepherd, Jan 10 2017
EXTENSIONS
a(13)-a(27) from Jon E. Schoenfield, Mar 28 2021
STATUS
approved