Part of 1996 National High School Mathematics League
Source: 1996 National High School Mathematics League, Exam One, Problem 9