DR.WANG Mathematics中文

2026 AMC 8 · Question 24

Number theory · Legendre’s Formula · factorial · arithmetic

Problem outline

Find the exponent of 7 in 1! 2! 3!⋯51!1!\,2!\,3!\cdots51!.

Show answer and methods 1 methods

Answer

E. 171171.

Method 1 Count repetitions of each multiple
Topics usedPrime valuations

A particular integer jj contributes to every factorial from j!j! through 51!51!, so it occurs 52−j52-j times. The multiples of 7 contribute 45+38+31+24+17+10+3=16845+38+31+24+17+10+3=168 factors of 7 before extra powers are considered.

Only 4949 is also a multiple of 727^2. It appears in 49!,50!,51!49!,50!,51! and contributes one extra factor in each, making 168+3=171168+3=171.

Source and attribution

The outline and worked methods on this page were prepared for DR.WANG Mathematics.

Original question (external)