To explain: You have 45 choices of numbers. You have 7 spots to fill with numbers. First spot you have 45 options x next spot which is 44 options x next spot 43 options.
The answer depends on exactly what you mean by 'variations'. If the order in which the numbers are written matters, then the calculation of 45P7 already suggested is correct.
BUT
If you are applying this to some kind of lottery (I recognise the number 45 from watching Tattslotto draws), you actually need to use combinations rather than permutations, since the order in which the numbers appears is not relevant. If you are really asking "How many combinations of 7 different numbers can be created if the numbers are selected from a total of 45 numbers?", the answer is 45C7, which is calculated as 45!/(38! x 7!) = 45 379 620. The answer is much smaller because duplicates are ignored. That is, 1234567 is the same as 1324567, 1423567, etc. When you calculate the permutation, you treat these as separate answers.
Return to FunTrivia
"Ask FunTrivia" strives to offer the best answers possible to trivia questions. We ask our submitters to thoroughly research questions and provide sources where possible. Feel free to post corrections or additions. This is server B184.