Part of 1992 National High School Mathematics League
Source: 1992 National High School Mathematics League, Exam One, Problem 4