1,3,7,13,21

I got this question in my exam today, and it baffled me. When I got home I tried to solve it, but I kept getting the wrong answer.
If you know how to solve this, please help me out by telling me how you solved it. Thanks in advance.