19th Canadian Mathematical Olympiad Problems 19871. Find all positive integer solutions to n! = a2 + b2 for n < 14. 2. Find all the ways in which the number 1987 can be written in another base as a three digit number with the digits having the same sum 25.