On a 40×40 square of pixels, you can draw a circle with approximately 40×sqrt(8) pixels.
If you are looking for a circle drawing algorithm to let you pick the pixels to put in your array, an easy way is to draw an eighth of the circle, then mirror it three times. It'sfor instance using the midpoint algorithm, then mirror it three times.