Olympiad Maths Prep

Track / Stage 6 / 178 of 400 #1178 of 2000

Problem 1178

National olympiad, first round
Algebra Difficulty 6.3 Prove it

Define the sequence (an)\left(a_{n}\right) as follows: a1=a2=1,a3=2a_{1}=a_{2}=1, a_{3}=2,

an+3=an+2an+1+n!an(n1) a_{n+3}=\frac{a_{n+2} a_{n+1}+n!}{a_{n}} \quad(n \geq 1)

Prove that every element of the sequence is an integer.

This one wants a proof. Work it on paper, read the official solution, then mark yourself honestly — the ladder only means something if the record is true.

Official solution

Solution. By calculating the first few values, it can be conjectured that if n>1n>1, then an=(n1)(n3)a_{n}=(n-1)(n-3) \ldots (i.e., a2k=(2k1)(2k3)531a_{2 k}=(2 k-1)(2 k-3) \cdot 5 \cdot 3 \cdot 1, and a2k+1=2k(2k2)642)\left.a_{2 k+1}=2 k(2 k-2) \ldots \cdot 6 \cdot 4 \cdot 2\right). We will prove that this is indeed the case by complete induction.
i) For n=2,3,4n=2,3,4, this is obviously true, since a2=1,a3=2a_{2}=1, \quad a_{3}=2, a4=21+1!1=3a_{4}=\frac{2 \cdot 1+1!}{1}=3

ii) Suppose the statement is true up to n+2n+2; then an+2=(n+1)(n1),an+1=n(n2)a_{n+2}=(n+1)(n-1) \ldots, a_{n+1}=n(n-2) \ldots, and an=(n1)(n3)a_{n}=(n-1)(n-3) \ldots. Using these, we will prove the statement for n+3n+3:

an+3=an+2an+1+n!an a_{n+3}=\frac{a_{n+2} a_{n+1}+n!}{a_{n}}

Notice that by the induction hypothesis,

an+2an+1=((n+1)(n1))(n(n2))==(n+1)n(n1)(n2)4321=(n+1)! \begin{aligned} a_{n+2} a_{n+1} & =((n+1)(n-1) \ldots) \cdot(n(n-2) \ldots)= \\ & =(n+1) n \cdot(n-1) \cdot(n-2) \cdot \ldots \cdot 4 \cdot 3 \cdot 2 \cdot 1=(n+1)! \end{aligned}

thus

an+3=(n+1)!+n!an=(n+1)n!+1n!an==(n+2)n(n1)(n2)(n3)4321(n1)(n3)==(n+2)n(n2)(n4) \begin{aligned} a_{n+3} & =\frac{(n+1)!+n!}{a_{n}}=\frac{(n+1) n!+1 \cdot n!}{a_{n}}= \\ & =\frac{(n+2) n(n-1)(n-2)(n-3) \ldots 4 \cdot 3 \cdot 2 \cdot 1}{(n-1)(n-3) \ldots}= \\ & =(n+2) n(n-2)(n-4) \cdot \ldots \end{aligned}

Remark. We could have proved by complete induction that an+1=n!ana_{n+1}=\frac{n!}{a_{n}}, from which it also easily follows that an=(n1)(n3)a_{n}=(n-1)(n-3) \cdots

Source: NuminaMath-1.5, licensed Apache-2.0. Statement and solution reproduced as published; topic, difficulty and ordering added by this site.