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.

A069976 Interior angle of a regular polygon of n sides, rounded to nearest integer.

Original entry on oeis.org

60, 90, 108, 120, 129, 135, 140, 144, 147, 150, 152, 154, 156, 158, 159, 160, 161, 162, 163, 164, 164, 165, 166, 166, 167, 167, 168, 168, 168, 169, 169, 169, 170, 170, 170, 171, 171, 171, 171, 171, 172, 172, 172, 172, 172, 173, 173, 173, 173, 173, 173, 173, 173, 174
Offset: 3

Views

Author

Kristie Smith (kristie10spud(AT)hotmail.com), Apr 30 2002

Keywords

Examples

			a(5) = (3*180)/5 = 108.
a(720) = 180; the maximum value. - _Robert G. Wilson v_, Mar 16 2016
		

References

  • Alexander Koeberlein, Elementary Geometry for College Students, 2nd Edition, Houghton Mifflin Company, Boston, 1999

Crossrefs

Cf. A100659.

Programs

  • Mathematica
    f[n_] := Round[180 (n - 2)/n]; Array[f, 55, 3] (* Robert G. Wilson v, Mar 16 2016 *)
  • PARI
    a(n) = round((n-2)*180/n); \\ Michel Marcus, Aug 27 2013

Formula

a(n) = round(((n-2)*180)/n).

Extensions

More terms from Michel Marcus, Aug 27 2013