Value of n:

Must be on the form 4|n or 4|n+1

Smallest

Largest