The Sefer Hamitzvot of the Rambam Mitzvah 97 and 98.