olymmath

HMMT 2016 C6

  • Combinatorics
  • Answer

Define the sequence a1,a2…a_{1}, a_{2} \ldots as follows: a1=1a_{1}=1 and for every n≥2n \geq 2,

an={n−2 if an−1=0an−1−1 if an−1≠0a_{n}= \begin{cases}n-2 & \text { if } a_{n-1}=0 \\ a_{n-1}-1 & \text { if } a_{n-1} \neq 0\end{cases}

A non-negative integer dd is said to be jet-lagged if there are non-negative integers r,sr, s and a positive integer nn such that d=r+sd=r+s and that an+r=an+sa_{n+r}=a_{n}+s. How many integers in {1,2,…,2016}\{1,2, \ldots, 2016\} are jet-lagged?

Dataset text NuminaMath olympiads. Quoted with source.

Show the answer

51

Solutions

No solution is on olymmath yet. Official and human solutions come first when they arrive. AI solutions come after them, with a label.

Add a solution

Similar problems

These problems have the most words in common with this statement.

Locator hmmt/2016/c6 · Tag 3198CTMF69 · Edit this page on GitHub · Keys: j next, k previous