Drawing a shape made up of circles in latex (Part 1)

Below is the latex code I used to create diagrams like this.