Outside a home there is a 7-key keypad numbered 1 through 7 the correct five digit code will open the garage door the number can be repeated in the code

How many codes are possible?
What is the probability of entering the correct code on the first try, assuming that the owner doesn’t remember the code?

A) the number of possible codes is?
Type an integer or fraction simplify your answer

B) the probability that the correct code is given on the first try, assuming that the owner doesn’t remember is?
Type an integer or fraction simplify your answer

A) 7^5 = 16,807

B) 1/16,807