Part of 1994 National High School Mathematics League
Source: 1994 National High School Mathematics League, Exam One, Problem 5