Modular arith, number theory problem

In summary, for the given equation x^2+1=0 \mod n, there will be a different number of roots depending on the value of n. For n = 8, there will be no solutions. For n = 9, there will be one solution. For n = 10, there will be two solutions. And for n = 45, there will be three solutions. This can be seen by using modular arithmetic to test different values of x for each case.
  • #1
imranq
57
1

Homework Statement



Find the number of roots for the equation [tex]x^2+1=0 \mod n \: for \: n = 8,9,10,45[/tex]

Homework Equations


The Attempt at a Solution



I have no idea where to start. Could someone help me understand?
 
Physics news on Phys.org
  • #2
Do you understand what mod refers to?
 
  • #3
yea, mod is used to represent items in terms of base n. But I don't understand how that is going to change the number of roots in the problem
 
  • #4
not sure but is this like modular arithmetic below?

so for the case n = 2,
try x = 0, 02+1= 1mod2 = 1 - FALSE
try x = 1, 12+1= 2mod2 = 0 - TRUE
x = 1 is the only for the n = 2 case

so for the case n = 3,
try x = 0, 02+1= 1mod2 = 1 - FALSE
try x = 1, 12+1= 2mod3 = 2 - FALSE
try x = 2, 32+1= 2mod3 = 0 - TRUE
x = 1 is the only solution for the n = 3 case

will start getting more intersting as the square get bigger and do more "loops" in the modular arithmetic...
 

Related to Modular arith, number theory problem

1. What is modular arithmetic?

Modular arithmetic is a type of arithmetic that deals with integers and their remainders when divided by a fixed integer. It is often used in number theory and cryptography.

2. What is the difference between modular arithmetic and regular arithmetic?

The main difference is that in modular arithmetic, numbers "wrap around" when they reach the fixed integer, instead of continuing to increase. For example, in regular arithmetic, 5 + 7 = 12, but in modular arithmetic with a modulus of 10, 5 + 7 = 2.

3. How is modular arithmetic used in cryptography?

Modular arithmetic is used in cryptography to encrypt information. By using modular arithmetic operations, such as modular exponentiation, secret messages can be encoded in a way that can only be decoded by someone who knows the appropriate key.

4. What is the significance of prime numbers in modular arithmetic?

Prime numbers play a crucial role in modular arithmetic, as they are used to determine the modulus. Additionally, the properties of prime numbers are important when solving certain types of modular arithmetic problems.

5. How is modular arithmetic used in real-life applications?

Modular arithmetic has many real-life applications, such as in computer science, cryptography, and engineering. It is used in computer algorithms, error-correcting codes, and in the design of secure communication systems, among others.

Similar threads

  • Calculus and Beyond Homework Help
Replies
6
Views
1K
  • Calculus and Beyond Homework Help
Replies
1
Views
950
  • Calculus and Beyond Homework Help
Replies
9
Views
2K
  • Calculus and Beyond Homework Help
Replies
24
Views
986
  • Calculus and Beyond Homework Help
Replies
7
Views
1K
  • Calculus and Beyond Homework Help
Replies
16
Views
2K
  • Calculus and Beyond Homework Help
Replies
6
Views
1K
  • Calculus and Beyond Homework Help
Replies
6
Views
2K
  • Calculus and Beyond Homework Help
Replies
3
Views
1K
  • Calculus and Beyond Homework Help
Replies
3
Views
1K
Back
Top