The next term in the sequence is:

>! **22**

Because:

>! These are the **[chapter numbers](https://harrypotter.fandom.com/wiki/List_of_chapters_in_the_Harry_Potter_novels)** which share their name with the part of the book title that follows '*Harry Potter and...*' (in order of the books' publication):  
>!  
>! Book 1 - **none**: *no chapter called 'The Philosopher's Stone'*;  
>! Book 2 - Chapter **16**: 'The Chamber of Secrets';  
>! Book 3 - **none**: *no chapter called 'The Prisoner of Azkaban'*;  
>! Book 4 - Chapter **16**: 'The Goblet of Fire';  
>! Book 5 - Chapter **5**: 'The Order of the Phoenix';  
>! Book 6 - Chapter **9**: 'The Half-Blood Prince';  
>! **Book 7 - Chapter 22: 'The Deathly Hallows'.**