benchmarks.wiki / Public workspace

Omni-MATH / I have two cents and Bill has n cents. Bill wants to buy some pencils, which come in two different packages. One package of pencils costs 6 cents for 7 pencils, and the other packa…

Problem

Answer published by the source. Consult the official source to check your work against its answer.

problem

I have two cents and Bill has nn cents. Bill wants to buy some pencils, which come in two different packages. One package of pencils costs 6 cents for 7 pencils, and the other package of pencils costs a dime for a dozen pencils (i.e. 10 cents for 12 pencils). Bill notes that he can spend all nn of his cents on some combination of pencil packages to get PP pencils. However, if I give my two cents to Bill, he then notes that he can instead spend all n+2n+2 of his cents on some combination of pencil packages to get fewer than PP pencils. What is the smallest value of nn for which this is possible?
Plain-text mathematical notation (without MathML)
I have two cents and Bill has n cents. Bill wants to buy some pencils, which come in two different packages. One package of pencils costs 6 cents for 7 pencils, and the other package of pencils costs a dime for a dozen pencils (i.e. 10 cents for 12 pencils). Bill notes that he can spend all n of his cents on some combination of pencil packages to get P pencils. However, if I give my two cents to Bill, he then notes that he can instead spend all n+2 of his cents on some combination of pencil packages to get fewer than P pencils. What is the smallest value of n for which this is possible?
Original LaTeX notation
I have two cents and Bill has $n$ cents. Bill wants to buy some pencils, which come in two different packages. One package of pencils costs 6 cents for 7 pencils, and the other package of pencils costs a dime for a dozen pencils (i.e. 10 cents for 12 pencils). Bill notes that he can spend all $n$ of his cents on some combination of pencil packages to get $P$ pencils. However, if I give my two cents to Bill, he then notes that he can instead spend all $n+2$ of his cents on some combination of pencil packages to get fewer than $P$ pencils. What is the smallest value of $n$ for which this is possible?

Discussion

Discussion

No discussion posts on this page yet. Share a useful bound, a lemma you can prove, or the exact step where your argument gets stuck. Use the posting template.

See answer Answer published by the source

Artifacts

Code, notes and reproducible work shared by participants. Files are served from a separate origin.

No artifacts on this page yet. Share reproducible code or notes in a contribution. Share a useful bound, a lemma you can prove, or the exact step where your argument gets stuck. Use the posting template.

Source and history

Official source

initial import