Find the last digit of the sum of two numbers with large exponents.

In summary, you can solve this question in your textbook by finding the last digit of 7^100 which is 1.
  • #1
johnnyICON
79
0
Hi, I am trying to solve this question in my textbook. It asks me to find the last digit of the following expression:

[tex]222^{555} + 555^{222}[/tex]

Now, I have tried using modular arithmetic to solve this question, but I'm stuck.
And I'm not all too sure if took the right approach or not, any hints?
 
Physics news on Phys.org
  • #2
You should be able to do the two terms seperately, can you find 555^222 mod 100? 222^555 mod 100?

It might make the arithmetic a little easier if you consider powers of 2, 5, and 11 mod 100 seperately but this isn't mandatory.
 
  • #3
I did something like that. I used mod 11 for both numbers. Found 222 congruent to 2 mod 11, and 555 congruent to 5 mod 11.

So I made the statement that [tex]222^{555} \equiv 2^{555} mod 11[/tex]and [tex]555^{222} \equiv 5^{222} mod 11[/tex]

Then, I did successive powers of both 2 and 5 and found their congruencies until I found a pattern.

I determined that after five successive powers of 5, the congruencies would repeat. And after ten successive powers of 2, the congruencies would repeat.

So I divided the the exponents 222 and 555 by 10 and 5, respectively, to find another congruency. And that's where I get stuck.
 
  • #4
Sorry, I was misleading in my last post. For some reason I thought you wanted the last two digits, not just the last one. To find the last digit you need only find 222^555 and 555^222 mod 10, which will be easier than finding them mod 100. This also means the bit about 11 is superfluous.
 
  • #5
Maybe you can take a look at this example:
Example. Find the last digit of [tex]7^{100}[/tex].
We need to evaluate [tex]7^{100}[/tex] (mod 10). Since [tex]7^2[/tex] = 49[tex]\equiv[/tex] −1 (mod 10) we have [tex]7^{100} \equiv (72)^{50} \equiv[/tex] (−1)[tex]^{50} \equiv 1[/tex] (mod 10).Thus the last digit is 1.

Is the last digit 1 because of the last congruency?
 
Last edited:
  • #7
Yes, the last digit of 7^100 is 1 because they've shown that the remainder you get when you divide 7^100 by 10 is 1.


So you look at the powers of 2 and find the pattern is 4 digits long. So 2^1, 2^5, 2^9, 2^13, ...2^105, ... are all congruent to 2 mod 10. Essentially you can add a 4 to the exponent and not affect the result. Same with 2^2, 2^6,... In the language of congruences, if [tex]a\equiv b\ mod\ 4[/tex] then [tex]2^a\equiv 2^b\ mod\ 10[/tex]. There is a good reason why this is true, a power of 2's congruence class mod 10 is completely determined by its congruence class mod 5 (Chinese remainder theorem if you've met it) and we know [tex]2^4\equiv 1\ mod\ 5[/tex].

In the link you provided, they have [tex]a\equiv b\ mod\ 4[/tex] implies [tex]7^a\equiv 7^b\ mod\ 10[/tex] (we actually know here [tex]7^4\equiv 1\ mod\ 10[/tex]). So to find [tex]7^{358}\ mod\ 10[/tex] notice [tex]358\equiv 2\ mod\ 4[/tex] so [tex]7^{358}\equiv 7^2\equiv 9\ mod\ 10[/tex].
 
  • #8
Wow, that makes a lot of sense now. And thanks for relating to the link I provided. I was really uncertain about this part::
shmoe said:
notice [tex]358\equiv 2\ mod\ 4[/tex] so [tex]7^{358}\equiv 7^2[/tex]

When I divided the exponent by the length and found its congruence, I wasn't sure if it meant that [tex]7^{358}\equiv 7^2[/tex] or if it meant [tex]7^{358}\equiv 7^{2 (mod 4)}[/tex].

So when dealing with congruencies, I can replace a with b by symmetry right? That is, [tex]358\equiv 2\ mod\ 4[/tex] is equivalent to [tex] 2\equiv 358\ mod\ 4[/tex].
 
Last edited:
  • #9
johnnyICON said:
When I divided the exponent by the length and found its congruence, I wasn't sure if it meant that [tex]7^{358}\equiv 7^2[/tex] or if it meant [tex]7^{358}\equiv 7^{2 (mod 4)}[/tex].

[tex]7^{358}\equiv 7^2\ mod\ 10[/tex] would be the correct one. You don't usually put "mod" up in an exponent.


johnnyICON said:
So when dealing with congruencies, I can replace a with b by symmetry right? That is, [tex]358\equiv 2\ mod\ 4[/tex] is equivalent to [tex] 2\equiv 358\ mod\ 4[/tex].

Yep. The "modular equivalence" works in many ways like your usual equal sign. It's symmetric, transitive and reflexive.
 
Last edited:
  • #10
Great! Thanks a lot shmoe, you've helped a lot! Too bad I couldn't rate your help.
10/10
 

1. What is meant by "large exponents" in this context?

Large exponents refer to numbers that are raised to a very high power, typically in the range of billions or higher.

2. How do you find the last digit of the sum of two numbers with large exponents?

To find the last digit of the sum, you need to first calculate the sum of the two numbers. Then, you can use the concept of modular arithmetic to find the remainder when the sum is divided by 10. This remainder will be the last digit of the sum.

3. Can this method be applied to any two numbers with large exponents?

Yes, this method can be applied to any two numbers with large exponents as long as they are real numbers. However, the larger the numbers, the more difficult and time-consuming the calculation may be.

4. Are there any shortcuts or tricks to finding the last digit of the sum?

Yes, there are some shortcuts and tricks that can be used to find the last digit of the sum of two numbers with large exponents. For example, if both numbers have the same last digit, the last digit of the sum will also be the same. Additionally, if the sum of the two numbers is divisible by 10, the last digit will be 0.

5. How is finding the last digit of the sum of two numbers with large exponents useful in real-world applications?

This concept is useful in various fields such as computer science, cryptography, and number theory. It can be used to efficiently perform calculations involving very large numbers, which are often encountered in these fields. Additionally, it can be used to check the accuracy of calculations and detect errors in data.

Similar threads

  • Calculus and Beyond Homework Help
Replies
13
Views
2K
Replies
3
Views
1K
  • Calculus and Beyond Homework Help
Replies
3
Views
1K
  • General Math
Replies
18
Views
2K
  • Precalculus Mathematics Homework Help
Replies
28
Views
3K
Replies
4
Views
385
Replies
4
Views
5K
  • Programming and Computer Science
Replies
1
Views
1K
Replies
7
Views
1K
  • Precalculus Mathematics Homework Help
Replies
13
Views
2K
Back
Top