Efficient Computation of Congruence Solutions and Generating Functions

  • Context: Graduate 
  • Thread starter Thread starter mhill
  • Start date Start date
  • Tags Tags
    Numbers
Click For Summary

Discussion Overview

The discussion revolves around two mathematical problems: the determination of two prime factors of a known product \( n = p \cdot q \) using the divisor function \( \sigma_1(n) \), and the exploration of generating functions to compute the number of solutions \( N(x) \) for a congruence \( f(x) = 0 \mod(p) \) over a specified interval. The scope includes theoretical aspects of number theory and computational complexity.

Discussion Character

  • Debate/contested
  • Mathematical reasoning

Main Points Raised

  • One participant suggests that determining the primes \( p \) and \( q \) from \( n \) and \( \sigma_1(n) \) is straightforward, questioning the complexity of the problem.
  • Another participant counters that knowing \( \sigma_1(n) \) requires knowledge of the factors of \( n \), implying that the problem is equivalent to factoring \( n \).
  • A third participant introduces a formula for the divisor function involving a double series with cosine, referencing Wikipedia as a source.
  • Concerns are raised about the computational efficiency of the proposed method, noting that trial division is significantly faster than evaluating the double sum, which could lead to roundoff errors.
  • One participant believes that the inner sum can be evaluated exactly, potentially simplifying the overall computation.
  • Another participant elaborates on the time complexity of computing the sums, suggesting that it is not competitive with the General Number Field Sieve (GNFS) method.

Areas of Agreement / Disagreement

Participants express differing views on the ease of determining the prime factors of \( n \) and the efficiency of the proposed methods for computing the divisor function and generating functions. No consensus is reached on these points.

Contextual Notes

The discussion highlights limitations in computational methods and assumptions regarding the evaluation of sums, but does not resolve these issues.

mhill
Messages
180
Reaction score
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
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!
 
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
 
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!
 
i think that the sum over [tex]\nu[/tex] can be evaluated exactly , so the expression becomes a simple sum over 'mu'
 
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]<br /> of GNFS.[/tex]
 

Similar threads

  • · Replies 17 ·
Replies
17
Views
2K
  • · Replies 8 ·
Replies
8
Views
2K
  • · Replies 21 ·
Replies
21
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 1 ·
Replies
1
Views
5K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 25 ·
Replies
25
Views
4K
  • · Replies 2 ·
Replies
2
Views
2K