How many odd five-digit counting numbers can be formed by choosing digits from the set {1, 2, 3, 4, 5, 6, 7, 8} if digits can be repeated?
We have 4 ways to choose the last digit and (8)^4 ways for the other digits
8^4 * 4 =
16384 counting numbers