Why does the decimal representation of 7/31 must either terminate or repeat after at most 30 decimal places