Efficient Computation of Congruence Solutions and Generating Functions

  • Thread starter mhill
  • Start date
  • Tags
    Numbers
In summary, the conversation discusses two problems - solving for two primes given the product of their values, and finding a generating function to compute the number of solutions to a congruence. The solution to the first problem is just as easy as factoring the product, but the second problem has a slower solution involving a double series. However, this method is not competitive with other factoring methods such as GNFS, which has a faster time complexity.
  • #1
mhill
189
1
i would like to solve these 2 problems ..

let be p and q two primes so n=p.q is known and we must determine the primes p and q is so easy as solving the system

[tex] n=p.q [/tex] and [tex] \sigma _{1} (n)=1+p+q+n [/tex]

with 'sigma' the divisor function that gives us the sum of the divisors of a certain number 'n' but is really so easy?

the second question is given the congruence [tex] f(x)=0 mod(p) [/tex] and N(x) the number of solutions of the congruence above on the interval [0,x] is there a generating function (of any type) to compute N(x) ??
 
Physics news on Phys.org
  • #2
It's not clear to me what you mean by "so easy". You can't know [itex]\sigma_1(n)[/itex] until you know the factors of n, in which case you already have p and q. In other words, determining the two primes p and q is "just as easy" as factoring n!
 
  • #3
But according to Wikipedia (here is the apparent paradox) you can compute the divisor function as a double series involving cosine

[tex] \sigma_x(n)=\sum_{\mu=1}^{n} \mu^{x-1}\sum_{\nu=1}^{\mu}\cos\frac{2\pi\nu n}{\mu} [/tex]

http://en.wikipedia.org/wiki/Divisor_function
 
  • #4
Factoring by trial division takes at most [itex]\sqrt n[/itex] divisions (or at most [itex]2+\sqrt n/3[/itex] divisions with 2, 3, and numbers 1,5 mod 6, or at most [itex]\pi(\sqrt n)[/itex] with a precalculated list of primes), while that double sum takes [itex]n^2/2[/itex] trig evaluations. That's a serious slowdown over an already slow method of factoring -- not the mention the roundoff error!
 
  • #5
i think that the sum over [tex] \nu [/tex] can be evaluated exactly , so the expression becomes a simple sum over 'mu'
 
  • #6
mhill said:
i think that the sum over [tex] \nu [/tex] can be evaluated exactly , so the expression becomes a simple sum over 'mu'

If you can calculate [itex]sum_{\nu=1}^{\mu}\cos\frac{2\pi\nu n}{\mu}[/itex] in unit time, computing
[tex]\sum_{\mu=1}^N\mu^{x-1}\sum_{\nu=1}^{\mu}\cos\frac{2\pi\nu N}{\mu}[/tex]
takes time
[tex]O(2^n)[/tex] (with [itex]2^{n-1}\le N<2^n[/itex])
which is not nearly competitive with the
[tex]O\left(2^{n^{1/3+\varepsilon}}\right)[/itex]
of GNFS.
 

1. What are the different types of numbers?

The different types of numbers include natural numbers, whole numbers, integers, rational numbers, irrational numbers, and real numbers. Natural numbers are the counting numbers (1,2,3...), whole numbers are the counting numbers and zero (0,1,2,3...), integers are whole numbers and their negative counterparts (...,-2,-1,0,1,2...), rational numbers are numbers that can be expressed as a ratio of two integers (0.5, 1.25, 3/4), irrational numbers are numbers that cannot be expressed as a ratio of two integers (√2, π), and real numbers include both rational and irrational numbers.

2. What is the difference between a prime number and a composite number?

A prime number is a number that is only divisible by 1 and itself (2, 3, 5, 7, 11, ...), while a composite number is a number that has more than two divisors (4, 6, 8, 9, 10, ...). In other words, a composite number can be broken down into smaller factors, while a prime number cannot. 1 is neither a prime nor a composite number.

3. How can you determine if a number is even or odd?

A number is even if it is divisible by 2, meaning there is no remainder when divided by 2. On the other hand, a number is odd if it is not divisible by 2, meaning there is always a remainder of 1 when divided by 2.

4. What is a perfect square?

A perfect square is a number that is the result of multiplying an integer by itself. For example, 9 is a perfect square because it is the result of 3 x 3. The square root of a perfect square is a whole number.

5. How can you order numbers from least to greatest?

To order numbers from least to greatest, you can use the number line. Numbers to the left of 0 are less than 0, and numbers to the right of 0 are greater than 0. Within each side, you can use the same method to compare numbers. Alternatively, you can also convert numbers to decimals or fractions and compare them based on their values.

Similar threads

  • Linear and Abstract Algebra
Replies
17
Views
1K
  • Linear and Abstract Algebra
Replies
8
Views
899
  • Linear and Abstract Algebra
Replies
2
Views
858
  • Linear and Abstract Algebra
Replies
3
Views
1K
  • Linear and Abstract Algebra
Replies
1
Views
788
  • Set Theory, Logic, Probability, Statistics
Replies
17
Views
473
  • Linear and Abstract Algebra
Replies
2
Views
961
  • Linear and Abstract Algebra
Replies
1
Views
921
  • Linear and Abstract Algebra
Replies
1
Views
1K
Replies
2
Views
1K
Back
Top