benchmarks.wiki / Public workspace

Omni-MATH / For any positive integer n, let f(n) denote the number of 1's in the base-2 representation of n. For how many values of n with 1≤n≤2002 do we have f(n)=f(n+1)?

Problem

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

problem

For any positive integer nn, let f(n)f(n) denote the number of 1's in the base-2 representation of nn. For how many values of nn with 1≤n≤20021 \leq n \leq 2002 do we have f(n)=f(n+1)f(n)=f(n+1)?
Plain-text mathematical notation (without MathML)
For any positive integer n, let f(n) denote the number of 1's in the base-2 representation of n. For how many values of n with 1≤n≤2002 do we have f(n)=f(n+1)?
Original LaTeX notation
For any positive integer $n$, let $f(n)$ denote the number of 1's in the base-2 representation of $n$. For how many values of $n$ with $1 \leq n \leq 2002$ do we have $f(n)=f(n+1)$?

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