A set consists of n consecutive integers in which the smallest term is 1. What is the value of n? (1) When one of the numbers is removed from the set, the average of the remaining numbers in the set is 15. (2) When one of the numbers is removed from the set, the average of the remaining numbers in the set is 16.