Modular Math Problem: What Is the Largest n?

  • Thread starter Gokul43201
  • Start date
In summary: I am preparing for that exam. And I think it's a coincidence that we both are studying the same material. Also, I don't think this problem is specific to any particular subject, it involves basic mathematical concepts that can be applied in various fields.
  • #1
Gokul43201
Staff Emeritus
Science Advisor
Gold Member
7,220
24
What is the largest n for which 10^n divides [(101^100) - 1] ? Clearly n=2, is one solution. What then ?
 
Physics news on Phys.org
  • #2
Well, you could caculate [tex]101^{100} (mod 1000)[/tex] and see what it is.
[tex]100=64+32+4[/tex]
[tex]101^4\equiv (101^2)^2 \equiv (201)^2 \equiv 401 (mod 1000)[/tex]
[tex]101^{32}\equiv (101^4)^8 \equiv (401)^8 \equiv (801)^4 \equiv 601^2 \equiv 201 (mod 1000) [/tex]
[tex]101^{64}\equiv (101^32)^2 \equiv (201)^2\equiv 401 mod (1000) [/tex]

so
[tex]101^{100}\equiv101^{64+32+4)\eqiuv 101^{64} \times 101^{32} \times 10^4 \equiv[/tex]
[tex]401\times401\times201\equiv 801 \times 201 \equiv 1[/tex]
so [tex]101^{100}-1[/tex] is divisible by [tex]10^3[/tex]

Alternatively consider [tex]101[/tex] mod [tex]2^n[/tex] and mod [tex]5^n[/tex]:
In base 2, 101 is written:
[tex]110011[/tex]
and in base 5
[tex]41[/tex]
Now, we know that for [tex]101^{100}-1[/tex] to be divisible by [tex]10^n[/tex] that [tex]101^{100} \equiv 1 (mod 2^n)[/tex] and [tex]101^{100} \equiv 1 (mod 5^n)[/tex]
Now, [tex]\phi(5^3)=5^2\times(5-1)=100[/tex] so [tex]x^{100} \equiv 1(mod 125)[/tex]
and [tex]\phi(2^3)=2^2\times(201)=4[/tex] so [tex]x^{100} \equiv (x^{25})^4) \equiv 1 (mod 8)[/tex]
but
[tex]\phi(5^4)=5^3\times(5-1)=600[/tex] does not divide [tex]100[/tex] so you need to check it.
similarly
[tex]\phi(2^4)=2^3\times(2-1)=8[/tex] does not divide [tex]100[/tex], and it's probably a faster one to check:
[tex]100 \equiv 4 (mod 8)[/tex]
and [tex]101 \equiv 5 (mod 16)[/tex]
corrected said:
so [tex]101^{100} \equiv 5^{4}\equiv 625 \equiv 9 \nequiv 1 (mod 16)[/tex]
so [tex]16[/tex] does not divide [tex]100^{101}-1[/tex] therefore [tex]10000[/tex] also does not.
so [tex]101^{100} \equiv 5^{4}\equiv 625 \equiv 1 (mod 16)[/tex]
(Corrected.I probably shouldn't be doing this in my head.)
 
Last edited:
  • #3
Wait a second : 101 == 5 (mod 16)
=> 101^2 ==25==9(mod 16) or 101^4 ==81==1(mod 16).
So 16 divides 101^100 - 1
 
  • #4
This is a question of the binominal formula for (100+1)^100 the leading term is going to be 100^100 and the last three terms are (100^2)x100x99/2 + 100x100 +1. So subtracting off 1 we have 100x100 as the smallest term in powers of 100, and the answer is 10,000 will divide the expression.
 
Last edited:
  • #5
This proves that 10,000 divides the number. How can I be sure there isn't another larger divisor ? It seems unlikely but not impossible...yet.
 
  • #6
How can I be sure there isn't another larger divisor ?

Evaluate 101^100 - 1 modulo 10^5. By the binomial theorem, we have that

[tex](100 + 1)^{100} = \sum_{k = 0}^{100} \binom{100}{k} 100^k = \sum_{k = 0}^{100} \binom{100}{k} 10^{2k} .[/tex]

Now, when the exponent of 10 is bigger than 5 (i.e k > 2), the terms in the sum are congruent to 0 mod 10^5. So

[tex]\sum_{k = 0}^{100} \binom{100}{k} 10^{2k} \equiv \binom{100}{0} 10^{0} + \binom{100}{1} 10^{2} + \binom{100}{2} 10^{4} \pmod{10^5}.[/tex]

That's pretty easy to evaluate (you can do it in your head), but I'll spare you the calculations. It's 49510001. So 101^100 - 1 = 49510001 - 1 != 0 (mod 10^5).
 
Last edited:
  • #7
gokul- this almost looks like the exact same material that i am studying... hmmm, weird no?
 
  • #8
Actually, I found this problem in a practice test paper for a B-School Entrance Exam.
 

FAQ: Modular Math Problem: What Is the Largest n?

What is modular math?

Modular math, also known as modular arithmetic, is a branch of mathematics that deals with the remainder of a division operation. It is often used to solve problems involving repeating patterns or cycles.

What does "n" represent in the modular math problem?

In the context of the largest n modular math problem, "n" represents the highest number in a given set of numbers that satisfies a certain modular equation or condition.

How do you find the largest n in a modular math problem?

To find the largest n in a modular math problem, you need to first determine the specific conditions or equations involved. Then, you can use various techniques such as trial and error, modular inverses, or the Chinese Remainder Theorem to find the largest n that satisfies the given conditions.

Can the largest n in a modular math problem be more than one number?

Yes, it is possible for there to be more than one number that satisfies the given conditions in a modular math problem. In such cases, all of the numbers that satisfy the conditions can be considered as the largest n.

What are some real-life applications of modular math?

Modular math has many practical applications in fields such as computer science, cryptography, and engineering. Some examples include error-correcting codes in computer networks, public key encryption algorithms, and scheduling tasks in parallel computing systems.

Similar threads

Back
Top