OK i just got out of bed with a huge headache so i can't seem to figure this out.
I need to create two bitmax for X amount of bits
first one is all "1"
Second one is every other bit has to be "1" and the others "0" but it does not matter if its 10101010... or 01010101...
First one was pretty easy. (x*x)-1
X=4
4*4 = 16
16 -1= 15
15 = binary 1111 ( 4 bits of "1"s)
I can't figure out how to do the other ones easily (low CPU usage)