Question:
What was the purpose of the sin offering brought on Rosh Chodesh and the chagim and where in the Gemara is this issue addressed?
Answer:
This issue is discussed at length in the first perek of Shavous, and at the beginning of that mesechet.
Best wishes\