I want to draw, say, 8 smaller circles that are adjacent to the big circle the edge of a big circle, similar to this picture.

I know the center coordinates of the bigger circle $(A, B)$, its radius $(R)$,radius of the smaller circles $(r)$, and the number of circles I want to draw $(n)$.
My question is very similar to the one discussed there, with one exception. I want a formula that calculates center coordinates of circles adjacent, not those on the edge of a bigger circle. Mathematics is not my strongest side (to say the least), so I'd greatly appreciate any help. Thank you!
For the 'adjacent' circles use : $\delta = 360/n$ where $n$ is the number of circles you want. Then the centers are $c_i = ((R+r)\cos i\delta + \phi, (R+r)\sin i\delta + \phi)$, where $i=0,1,...,n-1$ and $\phi$ is some offset rotation. Note that the small circles will not necessarily touch, but they will touch the large circle.
Edit: Here's a shadertoy example: https://www.shadertoy.com/view/wsfGWj