Find Remainder When Divided by 19

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

The discussion focuses on computing the remainder of \(2^{(2^{17})} + 1\) when divided by 19. It highlights the application of Fermat's Little Theorem, which states that for a prime \(p\), \(a^{p-1} \mod p = 1\). The initial step involves calculating \(2^{17} \mod 18\) to simplify the exponent before applying the theorem. This approach leads to the conclusion that \(2^{(2^{17})} + 1 \mod 19\) can be reduced to \(2^r + 1 \mod 19\) where \(r\) is the remainder from the earlier calculation.

PREREQUISITES
  • Understanding of Fermat's Little Theorem
  • Basic modular arithmetic
  • Exponentiation techniques
  • Knowledge of prime numbers
NEXT STEPS
  • Study Fermat's Little Theorem in detail
  • Practice modular exponentiation with various bases
  • Explore applications of modular arithmetic in cryptography
  • Learn about the properties of prime numbers and their significance in number theory
USEFUL FOR

Mathematicians, computer scientists, students studying number theory, and anyone interested in modular arithmetic and its applications.

Deanmark
Messages
16
Reaction score
0
Compute the remainder of 2^(2^17) + 1 when divided by 19. The book says to first compute 2^17 mod 18 but I don’t understand why we go to mod 18. Advice would be appreciated
 
Mathematics news on Phys.org
Deanmark said:
Compute the remainder of 2^(2^17) + 1 when divided by 19. The book says to first compute 2^17 mod 18 but I don’t understand why we go to mod 18. Advice would be appreciated

Hi Deanmark,

That's because of the Little Theorem of Fermat:
$$a^{p-1} \bmod p = 1$$
where $p$ is prime and $a$ is any number except for a multiple of $p$.

So if we can write $2^{17}$ as some multiple of $18$ and a remainder, say $2^{17} = 18k + r$, then:
$$2^{(2^{17})} + 1 \bmod 19 = 2^{18k+r} + 1 \bmod 19 = (2^{18})^k\cdot 2^r + 1 \bmod 19 = 2^r + 1 \bmod 19$$
 
The parts of my wall that have yet to be punched thank you.
 

Similar threads

  • · Replies 29 ·
Replies
29
Views
5K
Replies
2
Views
1K
  • · Replies 6 ·
Replies
6
Views
2K
Replies
2
Views
2K
  • · Replies 3 ·
Replies
3
Views
3K
Replies
2
Views
2K
  • · Replies 3 ·
Replies
3
Views
1K
  • · Replies 2 ·
Replies
2
Views
2K
Replies
7
Views
2K
  • · Replies 4 ·
Replies
4
Views
1K