Calculate Page Signature

Notes:

The ideal page count that uses the minimum amount of sheets of paper. Ideally you want to able to use 32 page signatures. Next best is 16 page signatures and least ideal 8 page signatures. However you should never use a count that results in fraction as that uses the an additional signature with the extra pages tossed out. The total page count must be an integer that is divisible by at least 8.