What is the remainder when $3^{2002}+7^{2002}+2002$ is divided by 29?

  • MHB
  • Thread starter Saitama
  • Start date
  • Tags
    Remainder
In summary: Deveno. In summary, Using Fermat's little theorem and modular arithmetic, we can find that the remainder when $3^{2002} + 7^{2002} + 2002$ is divided by 29 is 0. Alternatively, we can also use a shortcut by noticing that $3^2 + 7^2 = 58$ is divisible by 2, and since 2002 is even, the sum of odd powers of 3 and 7 will also be divisible by 58. Overall, this problem can be solved efficiently using various techniques from number theory.
  • #1
Saitama
4,243
93
Problem:

When $3^{2002}+7^{2002}+2002$ is divided by 29, the remainder is:

A)0
B)1
C)2
D)7

Attempt:
I tried the following:

$3^3 \equiv -2\mod 29$ i.e $3^{2002} \equiv 3\cdot 3^{2001} \equiv -3\cdot 2^{667} \mod 29$

Also, $2^5 \equiv 3 \mod 29$, hence, $-3\cdot 2^{667} \equiv -3\cdot 2^2\cdot 3^{133} \mod 29$

But this is becoming too long, I can continue with $3^3 \equiv -2\mod 29$ again but this is time consuming. I assume there exists a better method because 29 is a prime number.

Any help is appreciated. Thanks!
 
Mathematics news on Phys.org
  • #2
Pranav said:
Problem:

When $3^{2002}+7^{2002}+2002$ is divided by 29, the remainder is:

A)0
B)1
C)2
D)7

Attempt:
I tried the following:

$3^3 \equiv -2\mod 29$ i.e $3^{2002} \equiv 3\cdot 3^{2001} \equiv -3\cdot 2^{667} \mod 29$

Also, $2^5 \equiv 3 \mod 29$, hence, $-3\cdot 2^{667} \equiv -3\cdot 2^2\cdot 3^{133} \mod 29$

But this is becoming too long, I can continue with $3^3 \equiv -2\mod 29$ again but this is time consuming. I assume there exists a better method because 29 is a prime number.

Any help is appreciated. Thanks!

Hey Pranav! :)

Hint: use Fermat's little theorem (or Euler's theorem) saying that any number $a$ that has no factor in common with the prime 29 has $a^{29-1} \equiv 1 \pmod{29}$.
 
  • #3
Hi ILS! :D

I like Serena said:
Hint: use Fermat's little theorem (or Euler's theorem) saying that any number $a$ that has no factor in common with the prime 29 has $a^{29-1} \equiv 1 \pmod{29}$.

I have heard of FLT before but I am unable to apply it.

According to FLT, $3^{28} \equiv 1\mod 29$. Okay, after a bit of calculation, I found that
$$3^{2002}\equiv 3^{14} \mod 29$$
but this would still be time consuming. I think I am applying FLT the wrong way. :confused:
 
  • #4
Pranav said:
Hi ILS! :D
I have heard of FLT before but I am unable to apply it.

According to FLT, $3^{28} \equiv 1\mod 29$. Okay, after a bit of calculation, I found that
$$3^{2002}\equiv 3^{14} \mod 29$$
but this would still be time consuming. I think I am applying FLT the wrong way. :confused:

That's fine! ;)

Continue with squaring or something like that:
$$3^{14} \equiv 9^{7} \equiv (9^2)^3\cdot 9 \equiv 81^3\cdot 9 \equiv (-6)^3 \cdot 9 \pmod{29}$$
And so on...
 
  • #5
I like Serena said:
That's fine! ;)

Continue with squaring or something like that:
$$3^{14} \equiv 9^{7} \equiv (9^2)^3\cdot 9 \equiv 81^3\cdot 9 \equiv (-6)^3 \cdot 9 \pmod{29}$$
And so on...

Ah, it would still take some time, but thanks ILS! :)

Can you think of some trick for this problem, maybe by using the other parts of problem statement? We have two more numbers $7^{2002}$ and $2002$ and the exponent of both 3 and 7 is same as the last number i.e 2002. I am quite new to this number theory stuff, I currently can't think of anything. :(
 
  • #6
This is essentially the same as ILS's suggestion. You want to find $3^{14}\pmod{29}$. My little pocket calculator gives $3^7 = 2187$ and $75\times29 = 2175$. So $3^7\equiv 12 \pmod{29}$, and $3^{14} = (3^7)^2 \equiv 12^2 = 144 \equiv -1 \pmod{29}.$ It also gives $7^7 = 823543 = 28398\times29 + 1\equiv1 \pmod{29}.$ So $7^{14} = (7^7)^2 \equiv1 \pmod{29}.$ That just leaves $2002 \pmod{29}$, which should not be too hard.
 
  • #7
The thing to do in this situation is start looking at powers of 3 and 7 mod 29. We have:

$3^2 = 9$
$3^3 = 27 = -2$ (sometimes it's easier to work with the negatives if they're smaller integers)
$3^4 = 21 = -6$
$3^5 = 11$
$3^6 = 4$
$3^7 = 12$
$3^8 = 7$ <---this is interesting!
$3^9 = 21 = -8$
$3^{10} = 5$
$3^{11} = 15$
$3^{12} = 16$
$3^{13} = 19 = -10$
$3^{14} = 28 = -1$

As we discovered when doing this: $7 = 3^8$, so we can write:

$3^{14} + 7^{14} = 3^{14} + 3^{112} = 3^{14} + (3^{28})^4 = 3^{14} + 1^4 = -1 + 1 = 0$.

None of these calculations required a calculator.
 
  • #8
Deveno said:
The thing to do in this situation is start looking at powers of 3 and 7 mod 29. We have:

$3^2 = 9$
$3^3 = 27 = -2$ (sometimes it's easier to work with the negatives if they're smaller integers)
$3^4 = 21 = -6$
$3^5 = 11$
$3^6 = 4$
$3^7 = 12$
$3^8 = 7$ <---this is interesting!
$3^9 = 21 = -8$
$3^{10} = 5$
$3^{11} = 15$
$3^{12} = 16$
$3^{13} = 19 = -10$
$3^{14} = 28 = -1$

As we discovered when doing this: $7 = 3^8$, so we can write:

$3^{14} + 7^{14} = 3^{14} + 3^{112} = 3^{14} + (3^{28})^4 = 3^{14} + 1^4 = -1 + 1 = 0$.

None of these calculations required a calculator.

Opalg said:
This is essentially the same as ILS's suggestion. You want to find $3^{14}\pmod{29}$. My little pocket calculator gives $3^7 = 2187$ and $75\times29 = 2175$. So $3^7\equiv 12 \pmod{29}$, and $3^{14} = (3^7)^2 \equiv 12^2 = 144 \equiv -1 \pmod{29}.$ It also gives $7^7 = 823543 = 28398\times29 + 1\equiv1 \pmod{29}.$ So $7^{14} = (7^7)^2 \equiv1 \pmod{29}.$ That just leaves $2002 \pmod{29}$, which should not be too hard.

Thanks a lot Opalg and Deveno! :)
 
  • #9
There is a short cut
$3^2 + 7^2 = 58$ = 0 mod 2

$3^{2002} + 7^{2002}= (3^2)^{1001} + (7^2)^{1001}$

sum of odd powers of 2 numbers divisible by $3^2 + 7^2$
now one can proceed
 

Related to What is the remainder when $3^{2002}+7^{2002}+2002$ is divided by 29?

What is the remainder when a number is divided by 29?

The remainder when a number is divided by 29 is the amount left over after dividing the number by 29. For example, if we divide 100 by 29, the remainder would be 13 because 100 divided by 29 is equal to 3 with a remainder of 13.

How can I find the remainder when dividing by 29?

One way to find the remainder when dividing by 29 is to use the modulo operator (%). The remainder is the value after the % sign. For example, 100 % 29 would equal 13. Another way is to use long division to divide the number by 29 and the remainder would be the number left over after the decimal point.

Can the remainder when dividing by 29 ever be larger than 29?

No, the remainder when dividing by 29 will always be less than 29. This is because if the remainder was larger than 29, we could continue to divide it by 29 until the remainder was less than 29.

Can the remainder when dividing by 29 be a negative number?

Yes, the remainder when dividing by 29 can be a negative number. This occurs when the number being divided is negative or when the quotient is rounded down to a negative number. For example, if we divide -10 by 29, the remainder would be -10.

How is finding the remainder when dividing by 29 useful in science?

Finding the remainder when dividing by 29 can be useful in science when dealing with cyclical patterns, such as lunar or planetary cycles. It can also be used in encryption algorithms and in data analysis to group data into equal-sized groups.

Similar threads

  • Precalculus Mathematics Homework Help
Replies
14
Views
1K
  • Precalculus Mathematics Homework Help
Replies
1
Views
560
  • Precalculus Mathematics Homework Help
Replies
3
Views
1K
  • Precalculus Mathematics Homework Help
Replies
4
Views
911
  • General Math
Replies
2
Views
2K
  • Precalculus Mathematics Homework Help
Replies
7
Views
1K
Replies
2
Views
1K
  • General Math
Replies
1
Views
2K
Back
Top