benchmarks.wiki / Public workspace

Omni-MATH / P.J. starts with m=500 and chooses a positive integer n with 1≤n≤499. He applies the following algorithm to m and n: P.J. sets r equal to the remainder when m is divided by n. If …

Problem

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

problem

P.J. starts with m=500m=500 and chooses a positive integer nn with 1≤n≤4991 \leq n \leq 499. He applies the following algorithm to mm and nn: P.J. sets rr equal to the remainder when mm is divided by nn. If r=0r=0, P.J. sets s=0s=0. If r>0r>0, P.J. sets ss equal to the remainder when nn is divided by rr. If s=0s=0, P.J. sets t=0t=0. If s>0s>0, P.J. sets tt equal to the remainder when rr is divided by ss. For how many of the positive integers nn with 1≤n≤4991 \leq n \leq 499 does P.J.'s algorithm give 1≤r≤151 \leq r \leq 15 and 2≤s≤92 \leq s \leq 9 and t=0t=0?
Plain-text mathematical notation (without MathML)
P.J. starts with m=500 and chooses a positive integer n with 1≤n≤499. He applies the following algorithm to m and n: P.J. sets r equal to the remainder when m is divided by n. If r=0, P.J. sets s=0. If r>0, P.J. sets s equal to the remainder when n is divided by r. If s=0, P.J. sets t=0. If s>0, P.J. sets t equal to the remainder when r is divided by s. For how many of the positive integers n with 1≤n≤499 does P.J.'s algorithm give 1≤r≤15 and 2≤s≤9 and t=0?
Original LaTeX notation
P.J. starts with \(m=500\) and chooses a positive integer \(n\) with \(1 \leq n \leq 499\). He applies the following algorithm to \(m\) and \(n\): P.J. sets \(r\) equal to the remainder when \(m\) is divided by \(n\). If \(r=0\), P.J. sets \(s=0\). If \(r>0\), P.J. sets \(s\) equal to the remainder when \(n\) is divided by \(r\). If \(s=0\), P.J. sets \(t=0\). If \(s>0\), P.J. sets \(t\) equal to the remainder when \(r\) is divided by \(s\). For how many of the positive integers \(n\) with \(1 \leq n \leq 499\) does P.J.'s algorithm give \(1 \leq r \leq 15\) and \(2 \leq s \leq 9\) and \(t=0\)?

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