Vayikra23:24

דַּבֵּר אֶל־בְּנֵי יִשְׂרָאֵל לֵאמֹר בַּחֹדֶשׁ הַשְּׁבִיעִי בְּאֶחָד לַחֹדֶשׁ יִהְיֶה לָכֶם שַׁבָּתוֹן זִכְרוֹן תְּרוּעָה מִקְרָא־קֹדֶשׁ׃

"Speak to the children of Israel, saying: In the seventh month, on the first day of the month, you shall have a day of rest, a remembrance marked by the sounding of the horn, a holy gathering.

Vayikra 23:24

דַּבֵּר אֶל־בְּנֵי יִשְׂרָאֵל

Vayikra / Leviticus 23:24 · Remez

Vayikra 23:24

דַּבֵּר אֶל־בְּנֵי יִשְׂרָאֵל לֵאמֹר בַּחֹדֶשׁ הַשְּׁבִיעִי בְּאֶחָד לַחֹדֶשׁ יִהְיֶה לָכֶם שַׁבָּתוֹן זִכְרוֹן תְּרוּעָה מִקְרָא־קֹדֶשׁ׃

"Speak to the children of Israel, saying: In the seventh month, on the first day of the month, you shall have a day of rest, a remembrance marked by the sounding of the horn, a holy gathering.

Remez רֶמֶז

When Rosh Hashanah falls on Shabbat

The same words in two places of the Torah sound slightly different. Sometimes the difference hints that two different cases are meant.

The Baal HaTurim: "a day of rest, a remembrance marked by the sounding of the horn" means that on Shabbat the shofar is not blown, and only the remembrance of the sounding remains. But in the Temple it was blown even on Shabbat: the words "blow the shofar in Zion" hint at this, for their first letters spell "Shabbat." Chizkuni: here it says "a day of rest" and "a remembrance of the sounding," while in the section of Pinchas it says "a day of sounding." Here Rosh Hashanah falls on Shabbat, there on a weekday.

How Kitzur Ba'al HaTurim and Chizkuni explain it

Kitzur Ba'al HaTurim A day of rest, a remembrance marked by the sounding of the horn

Because on Shabbat the shofar is not blown: blowing the shofar does not set aside Shabbat, and only the remembrance of the sounding remains. But in the Temple they blow. "Blow the shofar in Zion" (תִּקְעוּ שׁוֹפָר בְּצִיּוֹן, Yoel / Joel 2:1): the first letters of these words (ת, ש, ב) spell "Shabbat" (שַׁבָּת). So in Zion they blow even on Shabbat.

Kitzur Ba'al HaTurim Remembrance

The word "remembrance" (זִכְרוֹן) appears three times by the count of the Masorah: here, "there is no remembrance of the former ones" (Kohelet / Ecclesiastes 1:11), and "there is no remembrance of the wise man, as of the fool" (Kohelet / Ecclesiastes 2:16). This matches the three books that are opened on Rosh Hashanah. So in two of them it is written "there is no remembrance": these are the righteous and the wicked, who need not be remembered any more, for some are written at once for life and others for death. This is "there is no remembrance of the wise man." And in the second verse it is written "there is no remembrance," matching the wicked. But in the third verse it is written "remembrance," matching those in the middle, whose fate hangs in the balance, and they must be remembered once more on Yom Kippur.

Chizkuni On the first day of the month you shall have a day of rest

When the first day of the month is a day of rest for you, then it is "a remembrance of the sounding." That is, when Rosh Hashanah falls on Shabbat, there is no sounding on it, as our Rabbis decreed, only a remembrance of the sounding. So in the prayer of a Rosh Hashanah that falls on Shabbat we say: "this day of remembrance, a day of remembrance of the sounding." But in the section of Pinchas it does not say "a day of rest," only "a day of sounding it shall be for you" (Bamidbar / Numbers 29:1): that is, when it falls on a weekday, one says on it "this day of remembrance, a day of sounding." And so the poet composed in a liturgical poem for Rosh Hashanah: "if it falls on the holy Shabbat, a remembrance of the sounding, a holy gathering, they set. And if it comes on a weekday, they commanded to blow in all your borders: a day of sounding it shall be for you."

Takeaway

When Rosh Hashanah falls on Shabbat, the shofar is not blown to this day. The sages decreed this so that no one would carry a shofar in the street on Shabbat (Rosh Hashanah 29b).
The three books of Rosh Hashanah are the book of the wholly righteous, the book of the wholly wicked, and the book of those in the middle (Rosh Hashanah 16b).
The Masorah is the set of notes in the margins of scrolls in which scribes counted how many times a word appears in Scripture.