Unlucky traveler ! Stranded on the island, she is unable to recollect the number of her friend.
We know that the first three numbers are either 635 or 674, that the number is odd and that there is exactly one '9'.
6 3 5 _ _ _ _
As the number is odd, the last digit should end either in 1, 3, 5, 7, 9.
As there has to be exactly one 9 in the seven digit, we will handle that separately.
Case 1: Last digit is odd, but NOT 9.
6 3 5 _ _ _
4The last digit can therefore be filled in 4 ways using number 1, 3, 5, 7.
As there is exactly on 9 it can be in any of the middle three places.
The other two places can be filled in 9 ways (all digits from 0 to 9, except 9)
6 3 5 _
9 9 4Total Number of ways = 3 * 4 * 9 * 9 = 972 ways
Case 1: Last digit is 9.
So the last digit can be filled only in 1 way.
The remaining digits can be filled in 9 ways (all digits from 0 to 9, except 9)
6 3 5 9 9 9 1Total Number of ways = 9 * 9 * 9 = 729 ways
Total number of ways = 729 + 972 = 1701 ways.
The same number of combinations would also apply for
6 7 54 _ _ _ _
Total number of possible combinations = 1701 * 2 = 3402.
IMO BP.S - Looking at the number of possible combinations, it is likely that the person will be stranded for some more time