These are the five numbers in binary, to give some inspiration for a bit twiddling algorithm:
110
11100
111110000
1111111000000
1111111111111000000000000