Circles in a semicircle

Slider n determines the number of circles touching the semicircle and slider m the number of circles going towards the centre.

Drag sliders m or n and observe what happens.