A man writes 1 on the first line of his paper, then writes 2 and 3 on the second line, then 4, 5, and 6 on the third, and continues so that on any line n he writes the first n integers following the last integer on line n - 1. What is the sum of the first and last integers on line 17