Public excerpt
Locked
Problem solved privately twice first. Then five hints, each revealing a little more (reframe, small cases, key tool, set-up, final push), the full solution, a check by a second method or a few lines of brute-force code, and the problem-solving heuristic to remember…
About this prompt
For olympiad, contest or puzzle-style problems: a ladder of hints from a gentle nudge to the key idea, so the student can stop as soon as they are unblocked, then a complete solution, an independent check (second method or brute-force code) and the transferable strategy. DeepSeek’s strength in multi-step mathematical reasoning is used to solve the problem twice before any hint is written.
Example output
PROBLEM: How many positive integers less than 1,000 are divisible by neither 5 nor 7?
HINT 1 — Is it easier to count the numbers you do NOT want?
HINT 2 — How many numbers from 1 to 999 are multiples of 5? Of 7? Did you count some twice?
HINT 3 — Inclusion-exclusion: |A ∪ B| = |A| + |B| − |A ∩ B|.
HINT 4 — Multiples of 5: ⌊999 / 5⌋. Multiples of both: multiples of 35.
HINT 5 — You should find 313 numbers divisible by 5 or 7.
SOLUTION
Multiples of 5: ⌊999 / 5⌋ = 199. Multiples of 7: ⌊999 / 7⌋ = 142 (7 × 142 = 994). Multiples of 35: ⌊999 / 35⌋ = 28 (35 × 28 = 980).
Divisible by 5 or 7: 199 + 142 − 28 = 313.
Neither: 999 − 313 = **686**.
CHECK
print(sum(1 for n in range(1, 1000) if n % 5 and n % 7)) # 686
REMEMBER: "neither" and "at least one" are signals to count the complement.
Follow-up 1: integers from 1 to 1,000 divisible by none of 2, 3 and 5 (answer: 266)…
Details
- Model
- DeepSeek
- Prompt language
- English
- Who it's for
- Students preparing maths competitions, their coaches, and puzzle enthusiasts
- Length
- ~570 tokens (estimate)
- Delivered as
- Prompt text, shown online after purchase
- Category
- Education
Reviews
No reviews yet. Only buyers of this prompt can leave one.