Seven numbers form an arithmetic sequence. The median of the seven numbers is five. The mean of the four largest numbers is seven more than the mean of the three smallest numbers. What is the ratio of the smallest number to the largest number? Express your answer as a common fraction.