Reference for Sukkah 5:6
יוֹם טוֹב הָרִאשׁוֹן שֶׁל חָג הָיוּ שָׁם שְׁלשָׁה עָשָׂר פָּרִים, וְאֵילִים שְׁנַיִם, וְשָׂעִיר אֶחָד. נִשְׁתַּיְּרוּ שָׁם אַרְבָּעָה עָשָׂר כְּבָשִׂים לִשְׁמֹנֶה מִשְׁמָרוֹת. בַּיּוֹם הָרִאשׁוֹן, שִׁשָּׁה מַקְרִיבִין שְׁנַיִם שְׁנַיִם, וְהַשְּׁאָר אֶחָד אֶחָד. בַּשֵּׁנִי, חֲמִשָּׁה מַקְרִיבִין שְׁנַיִם שְׁנַיִם, וְהַשְׁאָר אֶחָד אֶחָד. בַּשְּׁלִישִׁי, אַרְבָּעָה מַקְרִיבִין שְׁנַיִם שְׁנַיִם, וְהַשְׁאָר אֶחָד אֶחָד. בָּרְבִיעִי, שְׁלשָׁה מַקְרִיבִין שְׁנַיִם שְׁנַיִם, וְהַשְּׁאָר אֶחָד אֶחָד. בַּחֲמִשִּׁי, שְׁנַיִם מַקְרִיבִין שְׁנַיִם שְׁנַיִם, וְהַשְּׁאָר אֶחָד אֶחָד. בַּשִּׁשִּׁי, אֶחָד מַקְרִיב שְׁנַיִם, וְהַשְּׁאָר אֶחָד אֶחָד. בַּשְּׁבִיעִי, כֻּלָּן שָׁוִין. בַּשְּׁמִינִי, חָזְרוּ לַפַּיִס כְּבָרְגָלִים. אָמְרוּ, מִי שֶׁהִקְרִיב פָּרִים הַיּוֹם, לֹא יַקְרִיב לְמָחָר, אֶלָּא חוֹזְרִין חֲלִילָה:
On the first day of the festival [of Succoth], there were thirteen bullocks, two rams, and one goat, so that fourteen lambs were left for eight watches. On the first day, six (watches) sacrificed two each, and the (two) others, one each. [There were twenty-four priestly watches in the Temple, and all went up (to Jerusalem) for the festival and acquired the (privileges in the) obligatory festival offerings. Sixteen watches sacrificed sixteen beasts — thirteen bullocks, two rams, and one goat. There remained eight watches for fourteen lambs. Six of the eight sacrificed two each, making twelve lambs. The two remaining watches sacrificed one each.] On the second day, [when there was one bullock less, so that nine watches were left for fourteen lambs], five [of them] sacrificed two each [making ten], and the remaining [four watches sacrificed] one each. On the third day, [when there was an additional bullock less, so that ten watches were left for fourteen lambs], four [watches] sacrificed two each [making eight], and the remaining [six watches sacrificed] one each. On the fourth day, three (watches) sacrificed two each, and the remaining (eight), one each. On the fifth day, two (watches) sacrificed two each, and the remaining (ten) one each. On the sixth day, one (watch) sacrificed two, and the remaining (twelve) one each. On the seventh, all [the watches] were alike [and they sacrificed an equal number of lambs, each watch sacrificing one. For there were only seven bullocks, two rams, and one goat for ten watches, leaving fourteen lambs for fourteen watches.] On the eighth day, they reverted to the lottery, as on the (other) festivals. [The one bullock, one ram, and seven lambs of the eighth day are not sacrificed according to the order of the sacrifices of the (Succoth) festival relative to the order of the watches, but all the watches come and cast lots for them as they do on the other festivals. The order of the lottery is explained in Yoma (2:1).] They [the watch that had sacrificed lambs that day] said: "He who sacrificed bullocks today shall not do so tomorrow," but they took turns.