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

  • Context: MHB 
  • Thread starter Thread starter Saitama
  • Start date Start date
  • Tags Tags
    Remainder
Click For Summary

Discussion Overview

The discussion revolves around finding the remainder when the expression $3^{2002}+7^{2002}+2002$ is divided by 29. Participants explore various mathematical techniques, including modular arithmetic and Fermat's Little Theorem, to tackle this problem.

Discussion Character

  • Mathematical reasoning
  • Exploratory
  • Debate/contested

Main Points Raised

  • Some participants attempt to simplify $3^{2002}$ and $7^{2002}$ using modular arithmetic, with one participant noting that $3^3 \equiv -2 \mod 29$.
  • Others suggest using Fermat's Little Theorem, stating that since 29 is prime, $a^{28} \equiv 1 \mod 29$ for integers $a$ coprime to 29.
  • One participant calculates $3^{2002} \equiv 3^{14} \mod 29$ but expresses concern about the time-consuming nature of the calculations.
  • Another participant provides a sequence of powers of 3 modulo 29, noting that $3^{14} \equiv -1 \mod 29$ and $7^{14} \equiv 1 \mod 29$, leading to a combined result of $0$ when added.
  • One participant proposes a shortcut involving the sum of squares, suggesting that $3^2 + 7^2 \equiv 0 \mod 2$ and indicating a pattern for higher powers.

Areas of Agreement / Disagreement

Participants express various methods and approaches to the problem, with no consensus on a single solution or method. Some methods are explored in depth, while others remain tentative or incomplete.

Contextual Notes

Some calculations rely on specific modular properties and assumptions about the coprimality of numbers involved, which may not be universally applicable without further justification.

Saitama
Messages
4,244
Reaction score
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!
 
Physics news on Phys.org
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}$.
 
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:
 
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...
 
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. :(
 
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.
 
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.
 
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! :)
 
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
 

Similar threads

  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 14 ·
Replies
14
Views
2K
  • · Replies 2 ·
Replies
2
Views
1K
Replies
1
Views
894
Replies
3
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K
Replies
4
Views
2K
  • · Replies 7 ·
Replies
7
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 2 ·
Replies
2
Views
5K