Algorithm for placing circles of Diameter d around the edge of another circle with diameter D
Circles centers form isosceles triangle with base of length $2r$ and arms of length $R+r$, so
$ \tan (\frac{\beta}{2}) = \frac { r}{ r+R} $ hance $\beta = 2\arctan(\frac{r}{r+R}) $