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. /Prove that 1/n has an ending decimal exactly when n = 2ⁱ 5ʲ…
AdvancedMathematicsHigh School (11–12)Number TheoryConceptualNumericalOlympiad

Prove that 1/n has an ending decimal exactly when n = 2ⁱ 5ʲ…

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.

  1. Prove that 1n\dfrac{1}{n}n1​ has an ending decimal exactly when n=2i5jn = 2^i 5^jn=2i5j.
  1. Write 180\dfrac{1}{80}801​ as a decimal and say after how many places it ends.
  1. The number 99999=32×41×27199999 = 3^2 \times 41 \times 27199999=32×41×271. Use it to find the length of the repeating block of 141\dfrac{1}{41}411​, and write the block.
  1. Write 0.36‾0.\overline{36}0.36 as a fraction in lowest terms and give its denominator.

Check your answer

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

Need a reminder? The key ideaShowHide

n\sqrt{n}n​ is irrational unless nnn is a perfect square. A rational root p/qp/qp/q of an integer polynomial has p∣a0p \mid a_0p∣a0​ and q∣anq \mid a_nq∣an​. A fraction in lowest terms has an ending decimal exactly when its denominator is 2i5j2^i 5^j2i5j.

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. Part (a). An ending decimal equals m10k\dfrac{m}{10^k}10km​. If 1n=m10k\dfrac{1}{n} = \dfrac{m}{10^k}n1​=10km​, then nm=10knm = 10^knm=10k, so nnn has only the primes 222 and 555. Conversely, if n=2i5jn = 2^i 5^jn=2i5j, multiply the top and the bottom by 5k−j2k−i5^{k - j} 2^{k - i}5k−j2k−i with kkk the larger exponent: the bottom becomes 10k10^k10k.

Step 2. Part (b). 80=24⋅580 = 2^4 \cdot 580=24⋅5, so multiplying the top and the bottom by 535^353 gives 180=0.0125\dfrac{1}{80} = 0.0125801​=0.0125, four places.

Step 3. Part (c). 41∣9999941 \mid 9999941∣99999, so 141=243999999=0.02439‾\dfrac{1}{41} = \dfrac{2439}{99999} = 0.\overline{02439}411​=999992439​=0.02439, a block of 555. No shorter block works: a block of length kkk needs 41∣10k−141 \mid 10^k - 141∣10k−1, and 999, 999999, 999999999 and 999999999999 are not multiples of 414141 (9999=41×243+369999 = 41 \times 243 + 369999=41×243+36).

Step 4. Part (d). 0.36‾=3699=4110.\overline{36} = \dfrac{36}{99} = \dfrac{4}{11}0.36=9936​=114​, with denominator 111111.

Answer: 444 places, a block of length 555 (digits 024390243902439), and denominator 111111. Proof complete.

Log in to save this for later
← All Problems
← Prove that log₁₀ 2 is irrational. Using log₁₀ 2 = 0.30103 to five places, find the number of digits…Take a three-digit number abc whose first and last digits differ by at least 2… →
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 →