Given the relationship between the number of sides, the radius, and the length of each side in a regular polygon, find n.

EXPLANATION
If I=r√2, replacing terms:
[tex]r\sqrt[]{2}=2r\sin \frac{180}{n}[/tex]Dividing both sides by 2r:
[tex]\frac{r\cdot\sqrt[]{2}}{2r}=\sin \frac{180}{n}[/tex]Simplifying:
[tex]\frac{\sqrt[]{2}}{2}=\sin \frac{180}{n}[/tex]Applying sin-1 to both sides:
[tex]\sin ^{-1}\frac{\sqrt[]{2}}{2}=\frac{180}{n}[/tex]Multiplying both sides by n:
[tex]n\cdot\sin ^{-1}\frac{\sqrt[]{2}}{2}=180[/tex]Dividing both sides by sin-1 (sqrt(2)/2):
[tex]n=\frac{180}{\sin ^{-1}\frac{\sqrt[]{2}}{2}}[/tex]Solving the argument:
[tex]n=\frac{180}{45}[/tex]Simplifying:
[tex]n=4[/tex]The answer is n=4