olymmath

CN-SMO 2008 Problem 8

    Let nn be a positive integer. f(n)f(n) denotes the number of nn -digit numbers a1a2⋯an‾\overline{a_1a_2\cdots a_n} (wave numbers) satisfying the following conditions : (i) for each ai∈{1,2,3,4}a_i \in\{1,2,3,4\} , ai≠ai+1a_i \not= a_{i+1} , i=1,2,⋯i=1,2,\cdots ; (ii) for n≥3n\ge 3 , (ai−ai+1)(ai+1−ai+2)(a_i-a_{i+1})(a_{i+1}-a_{i+2}) is negative, i=1,2,⋯i=1,2,\cdots . (1) Find the value of f(10)f(10) ; (2) Determine the remainder of f(2008)f(2008) upon division by 1313 .

    Dataset text AI-MO AoPS. 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

    Similar problems

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

    Locator cn-smo/2008/p8 · Tag JWMG2AWNTN · Edit this page on GitHub · Keys: j next, k previous