Problem 263

A place to air possible concerns or difficulties in understanding ProjectEuler problems. This forum is not meant to publish solutions. This forum is NOT meant to discuss solution methods or giving hints how a problem can be solved.
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.

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


See also the topics:
Don't post any spoilers
Comments, questions and clarifications about PE problems.
User avatar
hk
Administrator
Posts: 12832
Joined: Sun Mar 26, 2006 10:34 am
Location: Haren, Netherlands

Re: Error in Problem 263

Post by hk »

I moved this from "Suggestions etc" to this Forum.
Our interpretation is that it is a dream a lot of engineers share.
Image
War ruins the life and health of untold numbers of innocent children.
earlbellinger
Posts: 2
Joined: Sat Mar 19, 2011 3:56 pm

Error in problem 263?

Post by earlbellinger »

"A pair of consecutive prime numbers with a difference of six is called a sexy pair (since "sex" is the Latin word for "six"). The first sexy pair is (23, 29)."

I think this is an error. There are many sexy pairs less than (23, 29): (5,11), (7,13), (11,17), (13,19), (17,23).
sivakd
Posts: 217
Joined: Fri Jul 17, 2009 9:37 am
Location: California, USA
Contact:

Re: Error in problem 263?

Post by sivakd »

Your examples are not consecutive.
Image
puzzle is a euphemism for lack of clarity
earlbellinger
Posts: 2
Joined: Sat Mar 19, 2011 3:56 pm

Re: Error in problem 263?

Post by earlbellinger »

Ah, you're right.
endagorion
Posts: 57
Joined: Mon Nov 21, 2011 9:19 pm

Re: Problem 263

Post by endagorion »

Ah. That's the first time I post on this forum, I'm totally confused.
I've "proved" that there are no "engineers' paradises". I may assume that my proof is flawed, but I fail to find the bug. I would appreciate any help.
Now, here we have a number n > (say) 30, which is EP. It's practical, so we have to represent 1, 2, 3, 4, ..., 8 as sums of its distinct divisors. 2 cannot be represented other way than itself, so n is even. 3 = 1 + 2, everything's good. 4 = 1 + 3, but if n is divisible by 3, then n + 3, n + 9 are divisible by 3 and therefore not prime, fail. So n has to be divisible by 4.
Next, 5 = 1 + 4, 6 = 2 + 4, 7 = 1 + 2 + 4. Next, 8. If n is not divisible by 5, 7 or 8 (it cannot be divisible by 6, as earlier), we can't represent 8, and that's a fail.
Assume n is divisible by 8. Then n + 4 and n - 4 are not, but as they're practical, they must be divisible by 5 or 7. They cannot be both divisible by 5 or 7, since their difference doesn't, so one of them is divisible by 7, say, n + 4. But then n - 3 is divisible by 7 and is not equal to 7, therefore not prime. Same for n - 4 and n + 3. Fail, n is not divisible by 8.
If not, n + 8 and n - 8 are also not divisible by 8, similarily one of them is divisible by 5, say, n + 8. But then n + 3 is also divisible by 5, therefore not prime, same for n - 8 and n - 3. We've come to a contradiction.
Where am I wrong? %)
Sorry if I give away something important.
TripleM
Posts: 384
Joined: Fri Sep 12, 2008 3:31 am

Re: Problem 263

Post by TripleM »

n may not be divisible by 3, but that doesn't mean other practical numbers can't be.
endagorion
Posts: 57
Joined: Mon Nov 21, 2011 9:19 pm

Re: Problem 263

Post by endagorion »

Oh. That was silly of me. =)
Thanks for your help!
User avatar
Oliver1978
Posts: 166
Joined: Sat Nov 22, 2014 9:13 pm
Location: Erfurt, Germany

Re: Problem 263

Post by Oliver1978 »

Can I safely assume there are 28,388 sexy triple-pairs (n-9,n-3)-(n-3,n+3)-(n+3,n+9) below 109?
49.157.5694.1125
Post Reply