To piggyback on this, if OP is studying an introduction to discrete math course, this book has some really useful example problems, including this odd door problem.
The Puzzling Adventures of Dr. Ecco is what's used lately.