MHB Generating Solutions for a Challenging Puzzle

  • Thread starter Thread starter JamesBwoii
  • Start date Start date
  • Tags Tags
    Puzzle
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.
 
Namaste & G'day Postulate: A strongly-knit team wins on average over a less knit one Fundamentals: - Two teams face off with 4 players each - A polo team consists of players that each have assigned to them a measure of their ability (called a "Handicap" - 10 is highest, -2 lowest) I attempted to measure close-knitness of a team in terms of standard deviation (SD) of handicaps of the players. Failure: It turns out that, more often than, a team with a higher SD wins. In my language, that...
Hi all, I've been a roulette player for more than 10 years (although I took time off here and there) and it's only now that I'm trying to understand the physics of the game. Basically my strategy in roulette is to divide the wheel roughly into two halves (let's call them A and B). My theory is that in roulette there will invariably be variance. In other words, if A comes up 5 times in a row, B will be due to come up soon. However I have been proven wrong many times, and I have seen some...
Back
Top