Four-digit numbers are to be formed using only the digits in the set:
A= {1,2,3,4,5,6,7, 8}
How many such numbers can be formed if repetitions of the digits are allowed? How many such numbers can be formed if repetitions of the digits are not allowed? How many numbers of part (b) that don't have the digit 5?