That was Succah 5:6

Succah5: 6
יוֹם טוֹב הָרִאשׁוֹן שֶׁל חַג הָיוּ שָׁם שְׁלֹשָׁה עָשָׂר פָּרִים, וְאֵילִים שְׁנַיִם, וְשָׂעִיר אֶחָד; נִשְׁתַּיְּרוּ שָׁם אַרְבָּעָה עָשָׂר כְּבָשִׂים לִשְׁמוֹנָה מִשְׁמָרוֹת.  בַּיּוֹם הָרִאשׁוֹן שִׁשָּׁה מַקְרִיבִין שְׁנַיִם שְׁנַיִם, וְהַשְּׁאָר אֶחָד אֶחָד. בַּשֵּׁנִי חֲמִשָּׁה מַקְרִיבִין שְׁנַיִם שְׁנַיִם, וְהַשְּׁאָר אֶחָד אֶחָד. בַּשְּׁלִישִׁי אַרְבָּעָה מַקְרִיבִין שְׁנַיִם שְׁנַיִם, וְהַשְּׁאָר אֶחָד אֶחָד. בָּרְבִיעִי שְׁלֹשָׁה מַקְרִיבִין שְׁנַיִם שְׁנַיִם, וְהַשְּׁאָר אֶחָד אֶחָד. בַּחֲמִישִׁי שְׁנַיִם מַקְרִיבִין שְׁנַיִם שְׁנַיִם, וְהַשְּׁאָר אֶחָד אֶחָד. בַּשִּׁשִּׁי אֶחָד מַקְרִיב שְׁנַיִם, וְהַשְּׁאָר אֶחָד אֶחָד. בַּשְּׁבִיעִי כֻּלָּן שָׁוִין.  בַּשְּׁמִינִי חָזְרוּ לְפַיֵס כְּבָרְגָלִים.  אָמְרוּ: ,,מִי שֶׁהִקְרִיב פָּרִים הַיּוֹם, לֹא יַקְרִיב לְמָחָר”; אֶלָּא חוֹזְרִין חֲלִילָה.
On the first festival day of Succos there were thirteen bullocks, two rams, and one he-goat; there remained fourteen yearling sheep for eight watches.  On the first day six [of the watches] offered up two each, and the rest [offered] one each. On the second [day] five offered up two each, and the rest one each. On the third [day] four offered up two each, and the rest one each. On the fourth [day] three offered up two each, and the rest one each. On the fifth [day] two offered up two each, and the rest one each. On the sixth [day] one offered up two, and the rest, one each. On the seventh [day] all were equal.  On the eighth [day] they reverted to [casting] lots as on the [other] festivals.  [The Sages] said, “Whoever offered up bullocks today should not offer them tomorrow”; but they took turns in rotation.