Well-known Google free DNS IPv4 address:
% whois 188.8.131.52 ... NetRange: 184.108.40.206 - 220.127.116.11 CIDR: 18.104.22.168/9 ...
How many hosts in this network?
>>> 2**(32-9) 8388608
Majority of networks has the prefix x.y.z.t/24
>>> 2**(32-24) 256
Yes, 256 hosts in the network. 'Class C network' in IPv4 lingo.
And otherwise. A network with 512 hosts.
>>> import math >>> 32-math.log(512, 2) 23.0
So it will have a prefix x.y.z.t/23
List of my other blog posts.
Yes, I know about these lousy Disqus ads. Please use adblocker. I would consider to subscribe to 'pro' version of Disqus if the signal/noise ratio in comments would be good enough.