When a rectangle's width and length are W and L. Find maximum number of dots that can be distributed on the rectangle. Each dots must be apart D distance from each other. The dots can be put on the sides of the rectangle.
For example, a rectangle's width and length are 8. The distance that dots need to be apart from each other is $\sqrt8$. How many dots can be put in the rectangle? This question made me want to know how it can be generalized by changing the rectangle's width, length and the distance between dots to variables. I got this problem from this video: https://www.youtube.com/watch?v=2-mxYrCNX60.
I tried to solve it by myself for a few hours but I couldn't think of a good way. I would be glad if you let me know how to solve it or related stuff to help solve this problem.