%I #20 Aug 08 2023 15:49:39
%S 180,360,540,720,900,1080,1260,1440,1620,1800,1980,2160,2340,2520,
%T 2700,2880,3060,3240,3420,3600,3780,3960,4140,4320,4500,4680,4860,
%U 5040,5220,5400,5580,5760,5940,6120,6300,6480,6660,6840,7020,7200,7380,7560,7740
%N Sum of interior angles in an n-sided polygon in degrees.
%H Harry J. Smith, <a href="/A066164/b066164.txt">Table of n, a(n) for n = 3..1000</a>
%H Tanya Khovanova, <a href="http://www.tanyakhovanova.com/RecursiveSequences/RecursiveSequences.html">Recursive Sequences</a>
%H <a href="/index/Rec#order_02">Index entries for linear recurrences with constant coefficients</a>, signature (2,-1).
%F a(n) = (n-2)*180.
%e a(3) = 180, since the sum of the interior angles in a triangle is 180 degrees
%t 180 Range[36] (* _Alonso del Arte_, Sep 22 2017 *)
%t LinearRecurrence[{2,-1},{180,360},50] (* _Harvey P. Dale_, Apr 06 2022 *)
%o (PARI) { for (n=3, 1000, write("b066164.txt", n, " ", (n - 2)*180) ) } \\ _Harry J. Smith_, Feb 03 2010
%K nonn,easy
%O 3,1
%A Ulrich Schimke (ulrschimke(AT)aol.com), Dec 12 2001