Do you have a book?

Have you a book?
Have you got a book?
I don't have a pen.
I have not a pen.
I haven't got a pen.
------------------------
Are they all grammatical?

All are grammatical, but the second and fifth are not used.

=)