Part of 1997 National High School Mathematics League
Source: 1997 National High School Mathematics League, Exam One, Problem 6