MathsReadCompetitive mathematics
Pattern recognition · integer answermedium10 min

Exactly three statements

Logic Constraints

A hidden integer n is odd and satisfies 1≤n<30. Exactly three of these statements are true: A) n>10; B) n is divisible by 3; C) n is divisible by 5; D) n is prime. Exactly one statement is false. Find n and submit one integer.

Learning goal: Combine truth conditions to determine a unique integer.

Look for the underlying structure rather than guessing the next number. Submit only the final integer; you can open hints below as needed.

Check your answer without signing in. Sign in to save your progress.

Accepted format: a whole number such as 42 or 123456789. No commas, formulas, or source code.

Hints

Hint 1

Consider which odd integers can satisfy two divisibility conditions.

Hint 2

If both B and C are true, n is a multiple of 15.

Hint 3

Check n=15 against all four statements and rule out other odd candidates below 30.

Common mistake to avoid

Accepting a number with only two true statements or treating composite as prime.

How to approach this problem

Use a truth table: for each candidate, evaluate each condition independently and sum the true flags. Primality and divisibility are separate tests.

Worked example with different values

For n=9, the statements n>5 and 3 divides n are true; n even and n prime are false, giving exactly two true statements.

Apply the same reasoning to the challenge. This example is a separate practice problem.

Learn the technique: Sequence patterns: differences, recurrences and interleaving

Report a question or explanation issue

Sequence patterns · Repeating remainders

Back to problems →