Part of 1995 National High School Mathematics League
Source: 1995 National High School Mathematics League, Exam One, Problem 8