formula to calculate number of arch with certain angel could be fixed in a circle I'm looking looking for a formula to calculate how many arches with certain angle could be fixed around a circle or in circular formation. I want to use that formula to write a procedure for MSWlogo for designing purpose. applying trial and error method I found few data like $a=135$ degree $b=90$ degree and $8$ arch can make a perfect circular formation, similarly $a=120$ $b=90$ and $12$ arch can form a circle too etc. but I failed to find out any general mathematical formula to use in program.

my class teacher told me that I'll find the answer when I'll study higher geometry and refused to answer me. so I've no choice other than asking here. please help me to find out a generalized formula to do the job. 
(ps: English is not my first language so if there are any grammatical mistake I'm sorry for that) 

The argument of the normal to an arch changes by $a$ as we traverse that arch. The normal then gets turned back by $\pi-b$ by the angle. Thus, each arch is rotated $a+b-\pi$ from the previous one.

Thus, there should be
$$
n=\frac{2\pi}{a+b-\pi}
$$
arches before they repeat the argument of the normal.
In degrees rather than radians, this becomes
$$
n=\frac{360^\circ}{a+b-180^\circ}
$$

Examples
For $a=135^\circ$ and $b=90^\circ$, we get $n=\frac{360^\circ}{135^\circ+90^\circ-180^\circ}=8$.
For $a=120^\circ$ and $b=90^\circ$, we get $n=\frac{360^\circ}{120^\circ+90^\circ-180^\circ}=12$.
