The answer is 504 tickets must be purchase to guarantee a win.
Step-by-step explanation:
This is a permutation problem, which requires arrangement.
The first place finisher can be any of the nine entries, the second place finisher can be any of the remaining 8 entries and the third place finisher can be any of the remaining 7 entries.