2. Tom doesn't have to buy a book. (Are both the same? Is #1 wrong?)
2. is correct.
You can ask a new question or answer this question.