The Sefer Hamitzvot of the Rambam Mitzvah 61 and 62.