Partition N where the count of parts and each part are a power of 2, and part size and count are restricted