Terminating vs. Repeating
Some rational number, such as 1/2, 3/8, and 2/5 have a finite
decimal (terminating decimal); while others, such as 1/3, have
infinite decimal representation (repeating decimal).
For which positive whole numbers, n, is the decimal
representation of 1/n finite? For which is it infinite? Describe
the pattern, if there is one.