Problem 347
Forum rules
As your posts will be visible to the general public you are requested to be thoughtful in not posting anything that might explicitly give away how to solve a particular problem.
This forum is NOT meant to discuss solution methods for a problem.
See also the topics:
Don't post any spoilers
Comments, questions and clarifications about PE problems.
As your posts will be visible to the general public you are requested to be thoughtful in not posting anything that might explicitly give away how to solve a particular problem.
This forum is NOT meant to discuss solution methods for a problem.
In particular don't post any code fragments or results.
Don't start begging others to give partial answers to problems
Don't ask for hints how to solve a problem
Don't start a new topic for a problem if there already exists one
Don't start begging others to give partial answers to problems
Don't ask for hints how to solve a problem
Don't start a new topic for a problem if there already exists one
See also the topics:
Don't post any spoilers
Comments, questions and clarifications about PE problems.
-
mdean
- Posts: 206
- Joined: Tue Aug 02, 2011 2:05 am
- hk
- Administrator
- Posts: 12842
- Joined: Sun Mar 26, 2006 10:34 am
- Location: Haren, Netherlands
-
xe3tec
- Posts: 46
- Joined: Thu May 05, 2011 8:52 am
- Location: Vienna
- Contact:
Re: Problem 347
I am going nuts. S(10) is fine. but my S(100) ist 22 too big...
Could someone giv me some M(p,q,100) results plz? I cant find my mistake. My function works for the the given examples.
Some(got more obviously) examples from me: with result, p,q
92 23 2
69 23 3
58 29 2
87 29 3
62 31 2
93 31 3
74 37 2
82 41 2
86 43 2
94 47 2
Otherwise the results for S(100) would be nice for comparison.
Could someone giv me some M(p,q,100) results plz? I cant find my mistake. My function works for the the given examples.
Some(got more obviously) examples from me: with result, p,q
92 23 2
69 23 3
58 29 2
87 29 3
62 31 2
93 31 3
74 37 2
82 41 2
86 43 2
94 47 2
Otherwise the results for S(100) would be nice for comparison.
-
thundre
- Posts: 356
- Joined: Sun Mar 27, 2011 10:01 am
Re: Problem 347
I think adding "p<q" somewhere in the problem statement would make this issue more clear.mdean wrote:Just to be clear, would S(10) be 16 or 32?
Detailed results for N=100 for xe3tec:
p q M(p,q,100)
Expand

-
xe3tec
- Posts: 46
- Joined: Thu May 05, 2011 8:52 am
- Location: Vienna
- Contact:
-
nemoyatpeace
- Posts: 10
- Joined: Thu Sep 09, 2010 12:24 am
Re: Problem 347
Hmmmm, my S(100) works fine, my S(10) works fine, but my result for S(10000000) is wrong. Can't figure out what I'm doing wrong.
Can I confirm a value for S(1000) = 193408
Grrrr, figured it out. I was missing a few values because of poor loops. Fixed now.
Can I confirm a value for S(1000) = 193408
Grrrr, figured it out. I was missing a few values because of poor loops. Fixed now.

-
robman8855
- Posts: 1
- Joined: Mon Aug 13, 2012 12:33 am
Re: Problem 347
I might be having the same problem as a few others. I'm getting
S(10)=16
S(100)= 2262
S(1000)=193408
S(10000)=16373230
S(100000)=1247352396
S(1000000)=72248285794
S(10000000)=5809021439045
I have no idea where I'm going wrong. As far as I can tell my code is perfect but something must be wrong because I'm getting the wrong answer. can anyone verify these values for S?
S(10)=16
S(100)= 2262
S(1000)=193408
S(10000)=16373230
S(100000)=1247352396
S(1000000)=72248285794
S(10000000)=5809021439045
I have no idea where I'm going wrong. As far as I can tell my code is perfect but something must be wrong because I'm getting the wrong answer. can anyone verify these values for S?
- peedyoJ
- Posts: 19
- Joined: Sat Aug 11, 2012 3:03 pm

