1986 AIME Problem 6

The pages of a book are numbered 1 through n. When the page numbers of the book were added, one of the page numbers was mistakenly added twice, resulting in the incorrect sum of 1986. What was the number of the page that was added twice?