olymmath

USAMO 1995 Problem 1

  • Day 1

The sequence a0a1,a2,…\mathrm{a}_{0} \mathrm{a}_{1}, \mathrm{a}_{2}, \ldots of non-negative integers is defined as follows. The first p−1\mathrm{p}-1 terms are 0,1,2,3,…0,1,2,3, \ldots, p−2p-2. Then ana_{n} is the least positive integer so that there is no arithmetic progression of length pp in the first n+1\mathrm{n}+1 terms. If p\mathrm{p} is an odd prime, show that an\mathrm{a}_{\mathrm{n}} is the number obtained by writing n\mathrm{n} in base p−1\mathrm{p}-1, then treating the result as a number in base p. For example, if p is 5 , to get the 5 th term one writes 5 as 11 in base 4 , then treats this as a base 5 number to get 6 .

Dataset text NuminaMath olympiads. Quoted with source.

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

Locator usamo/1995/p1 · Tag S88XTJW8FJ · Edit this page on GitHub · Keys: j next, k previous