f(n)=aantal koppels (x,y) waarvoor kgv(x,y)=n
-
- Nieuw lid
- Berichten: 16
- Lid geworden op: 19 apr 2012, 15:26
Re: f(n)=aantal koppels (x,y) waarvoor kgv(x,y)=n
I agree it is tough, but that's what 110 was all about, and solutions ran in milliseconds. Of course there are many primes to deal with now, but I can't think of a better approach currently. I could be totally wrong! Just offering ideas.
Re: f(n)=aantal koppels (x,y) waarvoor kgv(x,y)=n
If this is true, the problem is solved if you can modify that program to generate 's.IAmNotDutch schreef:With my current sieve:
For 10**6 it takes 0.004s to generate the necessary primes.
For 10**12 it takes 0.29s to generate the necessary primes.
So generating the primes isn't the challenge. It's intelligently looping through the necessary combinations so you can determine g(n) quickly.
,
where if .
is the number of prime factors of . E.g.
The values may be calculated by a sieve:
array
Add 1 to if m is even.
The first with is 3.
Now add 1 to for all m = 3k.
The first with is 5.
Now add 1 to for all m = 5k.
etc.
Re: f(n)=aantal koppels (x,y) waarvoor kgv(x,y)=n
Note that he/she means generating the primes till
for 10^6 he/she generates primes till 10^3
for 10^12 he/she generates primes till 10^6
for 10^6 he/she generates primes till 10^3
for 10^12 he/she generates primes till 10^6
-
- Nieuw lid
- Berichten: 16
- Lid geworden op: 19 apr 2012, 15:26
Re: f(n)=aantal koppels (x,y) waarvoor kgv(x,y)=n
Sorry; yes I mean up until sqrt(n).
Calculating the primes for all 10**12 is too long, but it isn't necessary anyway
Calculating the primes for all 10**12 is too long, but it isn't necessary anyway
-
- Nieuw lid
- Berichten: 16
- Lid geworden op: 19 apr 2012, 15:26
Re: f(n)=aantal koppels (x,y) waarvoor kgv(x,y)=n
This is very interesting; what is n(k) exactly? Do you have an example?op=op schreef: ,
where if .
is the number of prime factors of . E.g.
The values may be calculated by a sieve:
array
Add 1 to if m is even.
The first with is 3.
Now add 1 to for all m = 3k.
The first with is 5.
Now add 1 to for all m = 5k.
etc.
Re: f(n)=aantal koppels (x,y) waarvoor kgv(x,y)=n
Check it for .
Laatst gewijzigd door op=op op 19 apr 2012, 21:03, 5 keer totaal gewijzigd.
Re: f(n)=aantal koppels (x,y) waarvoor kgv(x,y)=n
Na wat lezen over de Perron formule en Dirichletconvoluties brengt mij dat tot deze contourintegraal in het complexe vlak.wnvl schreef:Eens nadenken of het mogelijk is om dit te verfijnen. Heb nog nooit gehoord van "Perron formula type" en die convolutie is mij ook nog niet duidelijk.
From this you can either use a convolution argument or a Perron formula type argument to get an asymptotic formula. In particular, I believe it follows that
With more work, you can get lower-order terms of size ≍xlogx and ≍x.
c moet groot genoeg zijn zodat de integraal convergeert.
Op zich is het natuurlijk maar het verleggen van het probleem, want hoe bereken je deze contourintegraal?.
Nieuwsgierig of Wolfram daar iets mee kan.
-
- Nieuw lid
- Berichten: 16
- Lid geworden op: 19 apr 2012, 15:26
Re: f(n)=aantal koppels (x,y) waarvoor kgv(x,y)=n
Is 10**12 high enough to make that converge?
Re: f(n)=aantal koppels (x,y) waarvoor kgv(x,y)=n
The solution must be a bit larger than 132314136789161. (15 digits).
The argument is a highly oscillating function between -10^35 and +10^35.
Terrible.
The argument is a highly oscillating function between -10^35 and +10^35.
Terrible.
Laatst gewijzigd door op=op op 19 apr 2012, 21:36, 1 keer totaal gewijzigd.
Re: f(n)=aantal koppels (x,y) waarvoor kgv(x,y)=n
Don't know how to determine the region of convergence...IAmNotDutch schreef:Is 10**12 high enough to make that converge?
Re: f(n)=aantal koppels (x,y) waarvoor kgv(x,y)=n
Above the output from mathematica for
n=5
c=10000
Integrate[(Zeta[10000 + I t]^3*5^(10000 + I*t))/(Zeta[20000 + 2* I* t]*(10000 + It)), {t, 0, Infinity}]
-
- Nieuw lid
- Berichten: 16
- Lid geworden op: 19 apr 2012, 15:26
Re: f(n)=aantal koppels (x,y) waarvoor kgv(x,y)=n
I don't mean to discourage current efforts but I am fairly certain that the answer will be more easily achievable through iterations/sieving rather than a mathematical approximation. I am beginning to think that this will come down to an exercise in modifying the Sieve effectively.
Re: f(n)=aantal koppels (x,y) waarvoor kgv(x,y)=n
c>1 is voldoende. Probeer het integratieinterval in stukjes te knippen.wnvl schreef:
Above the output from mathematica for
n=5
c=10000
Integrate[(Zeta[10000 + I t]^3*5^(10000 + I*t))/(Zeta[20000 + 2* I* t]*(10000 + It)), {t, 0, Infinity}]