Skip to content
m·amathatlas
ExploreAboutOpen problemsCited authorsMy libraryFeedback
Sign in
FRENES
Loading views…Recent views only, across all languages. Vercel history is unavailable for this page. Repeat visits in the same tab are grouped for 30 minutes.
ShareLinkedInXFacebookWhatsApp
← All open problems
Unanswered question

Sum and Product game

Mathematical logic

Imported on November 28, 2026

The forum classified this question as unanswered when collected. This does not certify an open research problem; check the answers and revision history at the source.

Read the question with its definitions and background below. The source provides the full formulation and further discussion; the glossary and Wikipedia links offer additional reading aids.

Problem statement

Two perfect logicians Steve and Pete, who have never met, before are imprisoned by an eccentric villain. "I have two positive integer numbers x and y" he says to them. "I will tell Steve the sum x+y, and Pete the product xy. If at any point either of you know the two numbers x and y, you may shout them out, and I will release you both. You may take turns saying statements giving the other information, but you may only communicate about your state of knowledge. If any part of your statement contains any information about the numbers themselves, you'll both be shot. If any of you tries to communicate any other information not directly implied by the statements, you'll both be shot."

Can the logicians always figure out the numbers?

As an example, if the two numbers are 1 and 6, a potential conversation could go:

P: I don't know the numbers

S: I don't know the numbers

P: I don't know the numbers

S: I don't know the numbers

P: I know the numbers! They are 1 and 6! (S would have known if the numbers were 2 and 3)

Or another example, if the numbers are 2 and 4:

P: I don't know the numbers

S: I didn't know whether you knew until you said that (could have been 1 and 5, and P would obviously have known, as 5 can only be factorized as 1x5)

P: I know the numbers! They are 2 and 4! (S couldn't have said that if the numbers were 1 and 8)

Is there always some strategy like this? (Note that the logicians are not able to communicate beforehand, and each logician must attempt to give useful information based on what they know)

Edit: The question has been raised whether just saying "I don't know" until someone figures it out would work for all possible answers. It doesn't. In order to show this, all one needs to do is construct a "cycle" of possibilities, with each consecutive pair alternatively having the same sum or the same product. Those pairs would be indistinguishable for S and P for all time unless more information is given than "I don't know the numbers"

A simple cycle is given by (2,5)->(3,4)->(1,12)->(3,10)->(5,6)->(1,10)->(2,5).

One could argue that simply eliminating the possibility of having 1 as one of the numbers would solve this problem. But by merely doubling the cycle, this is shown to be false: (4,10)->(6,8)->(2,24)->(6,20)->(10,12)->(2,20)->(4,10). Thus, removing 1 only delays the problem.

Edit 2: As the condition about only talking about states of knowledge is ambiguous, I have decided that a new version is: The logicians can only say either they know/don't know the numbers, or that they knew/didn't know what the previous person just said (from which the other logician can infer that they don't know the numbers, because otherwise they would have said that)

For example, if the numbers are 3 and 4, a conversation could go:

P: I don't know the numbers (could be 1 and 12 or 2 and 6)

S: I knew you didn't (even if the numbers were 2 and 5 or 3 and 4, P wouldn't have known)

P: I didn't know that (S couldn't have said that if the numbers were 2 and 6. However, this doesn't yet eliminate 1 and 12)

S: I know the numbers! They are 3 and 4! (the previous statement eliminated the other options)

Edit 3: 02/05/2020: It's starting to seem like it still might take the logicians quite a long time to figure out the numbers, and the logic gets increasingly difficult to follow. I wouldn't be surprised if for some pairs of numbers they might not be able to figure it out. Here's a particularly interesting (solvable!) case (shortened to aid readability). The numbers are 1 and 10:

P: I know you know that I don't know the numbers

S: I know you know that I didn't know that

P: I know the numbers now! They are 1 and 10!

Statement and context adapted from MathOverflow · Thomas

CC BY-SA 4.0 · Formatting adapted; mathematical formulas preserved · Source history

Topics : puzzle · modal-logic

Authors listed by the source : Thomas

Sources and original status

  • MathOverflow Status in source : unanswered at collection

Last activity on the question : May 1, 2020

Coverage, sources and method

This count measures imported entries, including distinct variants. It is not a count of all open mathematical questions worldwide. One entry may belong to several fields and sources.

This directory is neither exhaustive nor updated in real time. “Reported open” describes the source classification observed at import; imported entries have not each undergone independent mathematical verification. The 32 explained entries were reviewed separately.

Formal Conjectures: only “research open” statements with no reported formal proof are retained; their tag is checked in a pinned repository revision. Variants remain distinct. A “sorry” placeholder is not sufficient to establish open status.

Erdős: solved or independent problems and entries with a Lean solution are excluded, including “open (Lean)”. Exact matches to the main Formal Conjectures statements are merged.

Open Problem Garden: the open index is checked against the solved index; spam, identified clones and some outdated statuses are excluded. Statements and definition context are attributed to their original pages; formulas are preserved and the content remains under the GFDL. Recognized duplicates across sources are merged; this does not resolve every mathematical equivalence.

OEIS: direct extraction of conjectural comments and formulas, one entry per sequence, excluding mentioned resolutions. MathOverflow and Math Stack Exchange: questions classified as unanswered by their API, excluding closed posts and non-research categories. They remain distinct from problems reported open. This is a partial, dated collection; every entry credits its authors and license.

Documented exclusions account for recent announcements and conflicting statuses. A stronger variant or a special case can remain open after a different statement is settled.

Attribution: The Formal Conjectures Authors; teorth/erdosproblems and contributors; Open Problem Garden and contributors. Each source retains its license.

  • Formal Conjectures · 1,924 · Apache-2.0 / CC-BY-4.0
  • Erdős Problems (teorth) · 622 · Apache-2.0
  • Open Problem Garden · 404 · GFDL (source content); only title/category/link metadata imported
  • OEIS · 18,857 · CC BY-SA 4.0
  • MathOverflow · 19,035 · CC BY-SA (version on each entry)
  • Mathematics Stack Exchange · 35 · CC BY-SA (version on each entry)
Report a development or correction
mathatlas

An independent atlas to understand, read, and question research.

The papers present claimed results at different stages of verification.
NewsletterShare feedbackAbout Data and privacy
Created by Sonny Mupfuni