Determining the Smallest Value of n