Page 3 of 3
Posted: Wed Mar 14, 2012 9:07 am
by Besere
I got 37xxxxxxxxx54 but it is incorrect. Any hints on what I might have did wrong?
Posted: Wed Mar 28, 2012 12:23 pm
by honze
I used several implementations in different languages to calculate and compare.
The good thing: I get consistent results with small error rates. (Java same result as Python)
The bad thing: The last three digits are varying.
At some point (~85000000 iterations) the value of the answer does not change anymore.
I get there quite fast.
How do I check, whether my sum is "correct"?
I could bruteforce the last three digits, but that is #%&$§.
Posted: Mon May 12, 2014 4:23 pm
by Hippo
For those who don´t like guessing ... the correct answer is smaller by one than the answer the challenge accepts.
Posted: Fri Jun 13, 2014 5:56 pm
by meis
I transformed D(n) in something not-recursive. Am I on the right path? Can I do the same with N(n)? I can't find a pattern...
Posted: Tue Jun 17, 2014 10:50 pm
by Hippo
meis wrote:I transformed D(n) in something not-recursive. Am I on the right path? Can I do the same with N(n)? I can't find a pattern...
My path ... used just pen and paper.
Posted: Wed Aug 31, 2016 7:21 am
by 5el
Hippo wrote:For those who don´t like guessing ... the correct answer is smaller by one than the answer the challenge accepts.
If I round my result correctly I'm getting exactly the result accepted by the challenge.
Posted: Wed Aug 31, 2016 8:12 pm
by Hippo
5el wrote:Hippo wrote:For those who don´t like guessing ... the correct answer is smaller by one than the answer the challenge accepts.
If I round my result correctly I'm getting exactly the result accepted by the challenge.
Yes, my fault, the challenge is OK.
Posted: Wed May 24, 2017 4:32 pm
by peterisp
I'm a bit confused here. I have an analytic solution to what exactly N(x)/D(x) converges at infinity (starting with 0.7), which matches what I get if I run an optimized version of the code up to some 100000 iterations. At 1000000000000 iterations it should be converged to all the required significant digits - but still if I calculate that number and multiply by 1000000000000, it's not getting accepted as a correct answer, including some +- values that might be (but shouldn't be) affected by rounding.
Am I missing something here?
Posted: Thu May 25, 2017 5:42 pm
by Hippo
I did it the way you describe. So recheck the reasoning for the formula and as well the transformation to the answer ... number of digits used ... .
Posted: Thu Feb 10, 2022 2:53 pm
by meis
Alright, before I go on with my comment here, it's best I do a little prologue.
This challenge is my nemesis.
I love math, always have, and I started tackling this challenge for the first time when I was around 16/17 years old (more or less when I created my account here). From there on I started doing challenges occasionally, and every 1 or 2 years I come back here, to see if I have improved in some sense (usually I manage to do 2/3 challenges each time). Every time I try to do this one, and every time I come closer and closer, without actually managing to.
It angers me, because I KNOW it's easy, I KNOW the solution is before my eyes, but I cannot see it.
This time, after almost ten years from the first time I tackled this (and around 30/40 hours of fiddling with numbers and formulas), I give up. And by give up, I mean that I ask for some tips on this forum.
I managed to come up with a decent formula for N(x)/D(x), but it still is recursive. I translated it into a series, hoping I didn't do any math error along the way.
Now since this series still loops x/2 times, I need to unravel it. It seems the last step but really, I can't find the way to do it.
I'm not sayinmg too much to not spoil for others, but how can I do this last step? Should it be obvious? Have I made a mistake in rewriting the formula into a series? (although the result seems to work correctly for me for low numbers)
Posted: Sat May 21, 2022 5:40 pm
by tehron
Let me just say: I feel with you.
Hope we will solve it soon! :)