bitmask generated as 2^n