Matching all the numbers means getting 1 particular permutation of those 6 integers. Since the total number of numbers (having 6 integers from 1 to 9) is 9^6 = 531441 So to match all the numbers the odds are 1/531441A lottery players choose 6 numbers, 1 to 9 . example 742735

to match all the numbers the odds are 1/738.1125 ......

In the same way it will be (6*9)/9^6....to match 5 the odds are 1/492.075