HelpContactFor teachers and institutes
>_StemPy Lab
Mock TestsClasses

>_StemPy Lab

Learn. Solve. Code the solutions. Test yourself.

Live examsFree mock exams, timed and rankedEveryone starts together, and your score and rank come the moment it ends.See the exams →
Live examsInternational live exams are comingTell us which exam you want first. Timed practice papers are open now.See what is coming →

Learn

  • Physics
  • Chemistry
  • Mathematics
  • Biology
  • Python Programming
  • Statistics & Data Science
  • Computer Science
  • Space Science and Astronomy
  • Classes
  • Groups

Practice

  • Problems
  • Quizzes
  • Mock Tests
  • Prepare for an Exam
  • Question Sets
  • Exams
  • Certificates
  • Python Labs
  • AI Practice Generator
  • Student-Created Tests

Community

  • Discussions
  • Resources
  • Notes
  • Glossary
  • Blog

Account

  • Log in
© 2026 senLearn. All rights reserved.HelpFor SchoolsAboutContactPrivacy PolicyTerms of UseRefund Policy
  1. Problems
  2. /The number (100, 50) = (100!)/(50! 50!) has 30 digits…
AdvancedMathematicsHigh School (11–12)Number TheoryNumericalOlympiad

The number (100, 50) = (100!)/(50! 50!) has 30 digits…

StemPy LabContributed by StemPy Lab

Try it on paper first. A hint, the key idea and the worked solution are here when you need them.

The number (10050)=100!50! 50!\dbinom{100}{50} = \dfrac{100!}{50!\,50!}(50100​)=50!50!100!​ has 303030 digits. You want to know how many times some small primes divide it, without computing it.

  1. Find the exponent of 222 in (10050)\dbinom{100}{50}(50100​).
  1. Find the exponent of 333.
  1. Show that 777 does not divide (10050)\dbinom{100}{50}(50100​).

Use Legendre's formula for 100!100!100! and for 50!50!50!.

Check your answer

Work it out on paper, then type your number. The answer itself stays hidden.

Need a reminder? The key ideaShowHide

⌊x⌋≤x<⌊x⌋+1\lfloor x \rfloor \le x < \lfloor x \rfloor + 1⌊x⌋≤x<⌊x⌋+1. From 111 to nnn there are ⌊n/d⌋\lfloor n/d \rfloor⌊n/d⌋ multiples of ddd. Legendre: the exponent of a prime ppp in n!n!n! is ⌊n/p⌋+⌊n/p2⌋+…\lfloor n/p \rfloor + \lfloor n/p^2 \rfloor + \dots⌊n/p⌋+⌊n/p2⌋+…

The worked solution

Check an answer or open a hint to unlock the worked solution.

Have you tried it?

Work it out on paper first. It is fine to get stuck or make a mistake: that is how we learn. When you are ready, go through the solution one step at a time, and check each step against your own.

Step 1. The prime 2. In 100!100!100!: 50+25+12+6+3+1=9750 + 25 + 12 + 6 + 3 + 1 = 9750+25+12+6+3+1=97. In 50!50!50!: 25+12+6+3+1=4725 + 12 + 6 + 3 + 1 = 4725+12+6+3+1=47. So 97−2×47=397 - 2 \times 47 = 397−2×47=3.

Step 2. The prime 3. In 100!100!100!: 33+11+3+1=4833 + 11 + 3 + 1 = 4833+11+3+1=48. In 50!50!50!: 16+5+1=2216 + 5 + 1 = 2216+5+1=22. So 48−44=448 - 44 = 448−44=4.

Step 3. The prime 7. In 100!100!100!: 14+2=1614 + 2 = 1614+2=16. In 50!50!50!: 7+1=87 + 1 = 87+1=8. So 16−16=016 - 16 = 016−16=0, and 777 does not divide it.

Check by Kummer. 505050 in base 777 is 1017101_71017​. Adding 1017+1017=2027101_7 + 101_7 = 202_71017​+1017​=2027​ needs no carry, so the exponent is 000. In base 222, 50=110010250 = 110010_250=1100102​, and 50+5050 + 5050+50 has 333 carries.

Answer: the exponents are 333, 444 and 000.

Log in to save this for later
← All Problems
← A calculator shows only the first digits of a huge factorial, but you can still count the zeros at…Prove Hermite's identity lfloor x rfloor + lfloor x + 1/2 rfloor = lfloor 2x rfloor for every real… →
More onNumber Theory

Discussion (0)

Log in to join the discussion.

Loading…

More on this topic

  1. The triangular numbers are 1, 3, 6, 10, …, where the nth one is (n(n + 1))/2…Advanced
  2. Prove that the equation x³ + y³ + z³ = n has no solution in integers when n leaves remainder 4 or 5…Advanced
  3. Find every triple of positive integers a ≤ b ≤ c with 1/a + 1/b + 1/c = 1, and prove that there are…Advanced
  4. Find all pairs of positive integers (x, y) with x² - y² = 945…Hard
  5. A teacher wants a list of every primitive Pythagorean triple whose hypotenuse is less than 100…Advanced
All problems on this topic →