返回题库

AIME 2006 I · 第 4 题

AIME 2006 I — Problem 4

专题
Contest Math
难度
L4
来源
AIME

题目详情

Problem

Let NN be the number of consecutive 00's at the right end of the decimal representation of the product 1!2!3!4!99!100!.1!2!3!4!\cdots99!100!. Find the remainder when NN is divided by 10001000.

解析

Solution

A number in decimal notation ends in a zero for each power of ten which divides it. Thus, we need to count both the number of 5s and the number of 2s dividing into our given expression. Since there are clearly more 2s than 5s, it is sufficient to count the number of 5s.

One way to do this is as follows: 9696 of the numbers 1!, 2!, 3!, 100!1!,\ 2!,\ 3!,\ 100! have a factor of 55. 9191 have a factor of 1010. 8686 have a factor of 1515. And so on. This gives us an initial count of 96+91+86++196 + 91 + 86 + \ldots + 1. Summing this arithmetic series of 2020 terms, we get 970970. However, we have neglected some powers of 55 - every n!n! term for n25n\geq25 has an additional power of 55 dividing it, for 7676 extra; every n! for n50n\geq 50 has one more in addition to that, for a total of 5151 extra; and similarly there are 2626 extra from those larger than 7575 and 11 extra from 100100. Thus, our final total is 970+76+51+26+1=1124970 + 76 + 51 + 26 + 1 = 1124, and the answer is 124\boxed{124}.

Solution 2 (Legendre's Formula )

This problem can be easily solved using Legendre's Formula:

First is to account for all of the factorials that are greater than 5n5n or 5,10,15,20...1005, 10, 15, 20...100, then the factorials that are greater than 52n5^2n or 25,50,75,10025, 50, 75, 100. Since 53=125>1005^3=125>100 we do not need to account for it.

This gives 96+91+86+...+196+91+86+...+1 and 76+51+26+176+51+26+1 respectively. Adding all of these terms up gives 1124 or 124\boxed{124}.

~PeterDoesPhysics

Video Solution by OmegaLearn

https://youtu.be/p5f1u44-pvQ?t=413

~ pi_is_3.14