Load balancing documentation unclear

Hi, in the official documentation under DNS caveats it says

Whenever the DNS record is refreshed a list is generated to handle the weighting properly. Try to keep the weights as multiples of each other to keep the algorithm performant, e.g., 2 weights of 17 and 31 would result in a structure with 527 entries, whereas weights 16 and 32 (or their smallest relative counterparts 1 and 2) would result in a structure with merely 3 entries, especially with a very small (or even 0) ttl value.

Can someone explain what that means and where those “527 entries” and “3” entries are coming from?

Thank you.