MHB Generating Solutions for a Challenging Puzzle

  • Thread starter Thread starter JamesBwoii
  • Start date Start date
  • Tags Tags
    Puzzle
Click For Summary
The discussion revolves around generating solutions for a specific puzzle involving two integers, X and Y, under certain conditions. The initial set of possible quads, [X, Y, S, P], was narrowed down from 2352 to 1747 by eliminating those where P is a prime number or has only two unique factors. The user seeks clarification on further necessary eliminations, particularly regarding unique sums, and is considering additional constraints such as S being odd, not being of the form Q+2 where Q is prime, and being less than 55. The user expresses confidence in their progress but remains uncertain about the completeness of their solution set. The conversation highlights the complexity of the problem and the need for careful consideration of mathematical properties.
JamesBwoii
Messages
71
Reaction score
0
Hi, I'm doing some programming work with regards to this puzzle.

Impossible Puzzle - Wikipedia, the free encyclopedia

I have to generating the solutions to the the resulting solutions after the four following sentences are said.

  1. P says "I cannot find these numbers."
  2. S says "I was sure that you could not find them. I cannot find them either."
  3. P says "Then, I found these numbers."
  4. S says "If you could find them, then I also found them."

I am creating a list of quads, [X,Y,S,P] where X and Y are the two integers where

  • 0 < X < Y
  • S = X + Y
  • S < 100
  • P = X * Y

So firstly I generated every single possibility which is 2352 possible quads.

Then after sentence 1 is said I remove a quad if P is a prime number or if P has two unique factors. In other words if P can only be made from 2 possible numbers it is removed. This leaves 1747 quads. I know this is correct.

From there on I am a little confused. I know that unique sums need to be removed but I have been told that that is not enough and other quads need removing, but I can't think what else would mean that it would need to be removed.

Thank you.
 
Physics news on Phys.org
Pretty sure I've figured it out now.

  • S is odd(Goldbach Conjecture).
  • S is not of the form Q+2 where Q is prime.
  • S is less than 55.
 
First trick I learned this one a long time ago and have used it to entertain and amuse young kids. Ask your friend to write down a three-digit number without showing it to you. Then ask him or her to rearrange the digits to form a new three-digit number. After that, write whichever is the larger number above the other number, and then subtract the smaller from the larger, making sure that you don't see any of the numbers. Then ask the young "victim" to tell you any two of the digits of the...

Similar threads

  • · Replies 1 ·
Replies
1
Views
2K
Replies
3
Views
3K
  • · Replies 3 ·
Replies
3
Views
1K
Replies
25
Views
4K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 7 ·
Replies
7
Views
2K
  • · Replies 8 ·
Replies
8
Views
3K
  • · Replies 11 ·
Replies
11
Views
2K
Replies
2
Views
4K
  • · Replies 29 ·
Replies
29
Views
4K