A. Essentially, b is (or can be expressed in an equivalent fraction as) a power of ten. Say the decimal is 0.342, then the fraction would be 342/1000. Ten has two prime factors, 2 and 5. Some factors in increased powers of ten might be canceled out by the numerator, but factors will never be added. Thus, b must have prime factors of only 2 and 5 to terminate.
B. If n is a repeating decimal, the number of digits in the repeating block cannot be more than (b-1). For example, (1/7) has 6 digits in the repeating block.