Binary 511 would be 111111110.
There are 10 kinds of people in the world.
Those that understand binary and those that don't.
You appear to be among the latter.
http://www.binaryhexconverter.com/binary-to-decimal-converter
Wouldn’t binary 511 be 111111111?