# Win the lottery!

In a certain lottery, 7 balls are drawn at random from n balls numbered from 1 to n. If the probability that no pair of consecutive numbers is drawn is the same as the probability of drawing exactly one pair of consecutive numbers, and both probabilities are nonzero, then determine n. Source: AOPS

×