Generating Solutions for a Challenging Puzzle

  • MHB
  • Thread starter JamesBwoii
  • Start date
  • Tags
    Puzzle
In summary, The conversation discusses the creation of a list of quads [X,Y,S,P] for a programming puzzle. It is mentioned that there are 2352 possible quads and after certain conditions, it is narrowed down to 1747 quads. It is also mentioned that unique sums need to be removed and there are further conditions such as S being an odd number and not being of the form Q+2 (where Q is prime) and less than 55.
  • #1
JamesBwoii
74
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
  • #2
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.
 

FAQ: Generating Solutions for a Challenging Puzzle

How do I start understanding a puzzle?

The first step in understanding a puzzle is to carefully examine and observe all of its elements. Look for patterns, colors, and any other clues that may be present. This will help give you an idea of what the puzzle is all about and how to approach it.

What strategies can I use to solve a puzzle?

There are many strategies you can use to solve a puzzle, including trial and error, process of elimination, and breaking the puzzle into smaller parts. It's important to be patient and persistent, and to try different approaches until you find one that works for you.

How can I stay motivated when solving a puzzle?

One way to stay motivated when solving a puzzle is to set small goals for yourself. For example, try to solve a certain number of pieces or a specific section of the puzzle. You can also take breaks and come back to the puzzle later with a fresh perspective.

What should I do if I get stuck on a puzzle?

If you get stuck on a puzzle, try looking at it from a different angle or taking a break. You can also ask for help from a friend or family member, or look for online tutorials or hints. Sometimes, stepping away from the puzzle and coming back to it with a clear mind can also help.

How can I improve my puzzle-solving skills?

The best way to improve your puzzle-solving skills is to practice regularly. Start with simpler puzzles and gradually work your way up to more challenging ones. You can also try different types of puzzles to improve your problem-solving abilities and critical thinking skills.

Back
Top