Maths Olympiad Prep

Library / /468 of 520

Algebra Difficulty 7.5 National olympiad, round 2 Prove it

8.45 Let rr be a positive integer, and the sequence {an}\left\{a_{n}\right\} satisfies:
a1=1,an+1=nan+2(n+1)2rn+2,n=1,2,a_{1}=1, a_{n+1}=\frac{n a_{n}+2(n+1)^{2 r}}{n+2}, n=1,2, \cdots

Prove that each ana_{n} is a positive integer, and find all nn such that ana_{n} is even.

Solution

[Proof] Since
(n+2)an+1=nan+2(n+1)2r(n+2) a_{n+1}=n a_{n}+2(n+1)^{2 r}

Therefore \square
(n+2)(n+1)an+1=(n+1)nan+2(n+1)2r+1(n+2)(n+1) a_{n+1}=(n+1) n a_{n}+2(n+1)^{2 r+1}

Let
bn=(n+1)nan,n=1,2,3,bn+1=bn+2(n+1)2r+1\begin{array}{l} b_{n}=(n+1) n a_{n}, n=1,2,3, \cdots \\ b_{n+1}=b_{n}+2(n+1)^{2 r+1} \end{array}

Then \square
Thus, from b1=2b_{1}=2 we have
bn=2k=1nk2r+1,n=1,2,b_{n}=2 \sum_{k=1}^{n} k^{2 r+1}, n=1,2, \cdots

When n=1n=1, it is clear from b1=2b_{1}=2 that 1(1+1)b11 \cdot(1+1) \mid b_{1}. Suppose n>1n>1, since
bn=2n2r+1+k=1n1(k2r+1+(nk)2r+1)b_{n}=2 n^{2 r+1}+\sum_{k=1}^{n-1}\left(k^{2 r+1}+(n-k)^{2 r+1}\right)

And 2r+12 r+1 being odd implies
nk2r+1+(nk)2r+1,n \mid k^{2 r+1}+(n-k)^{2 r+1},

Therefore
nbnn \mid b_{n}

On the other hand, from
bn=k=1n(k2r+1+(n+1k)2r+1)b_{n}=\sum_{k=1}^{n}\left(k^{2 r+1}+(n+1-k)^{2 r+1}\right)

And
n+1k2r+1+(n+1k)2r+1n+1 \mid k^{2 r+1}+(n+1-k)^{2 r+1}

We know
n+1bnn+1 \mid b_{n}

By the fact that nn and n+1n+1 are coprime, we get
n(n+1)bn,n=1,2,3,n(n+1) \mid b_{n}, n=1,2,3, \cdots

That is, an=bnn(n+1)a_{n}=\frac{b_{n}}{n(n+1)} is a positive integer.
Next, we discuss the parity of ana_{n}. When nn is even, it is clear that ana_{n} and bnn\frac{b_{n}}{n} have the same parity. Also, b22=1+22r+1\frac{b_{2}}{2}=1+2^{2 r+1}, and when n>2n>2,
bn=2n2r+1+k=1n1(k2r+1+(nk)2r+1)=2n2r+1+2k=1n22(k2r+1+(nk)2r+1)+2(n2)2r+1\begin{aligned} b_{n} & =2 n^{2 r+1}+\sum_{k=1}^{n-1}\left(k^{2 r+1}+(n-k)^{2 r+1}\right) \\ & =2 n^{2 r+1}+2 \sum_{k=1}^{\frac{n-2}{2}}\left(k^{2 r+1}+(n-k)^{2 r+1}\right)+2 \cdot\left(\frac{n}{2}\right)^{2 r+1} \end{aligned}

Therefore, bnn\frac{b_{n}}{n} and (n2)2r\left(\frac{n}{2}\right)^{2 r} have the same parity. This immediately gives us
an={ even, when n0(mod4), odd, when n2(mod4).a_{n}=\left\{\begin{array}{l} \text { even, when } n \equiv 0(\bmod 4), \\ \text { odd, when } n \equiv 2(\bmod 4) . \end{array}\right.

When nn is odd, it is clear that ana_{n} and bnn+1\frac{b_{n}}{n+1} have the same parity. Since b1=2b_{1}=2, and when n>1n>1,
bn=k=1n(k2r+1+(n+1k)2r+1)=2k=1n12(k2r+1+(n+1k)2r+1)+2(n+12)2r+1\begin{aligned} b_{n} & =\sum_{k=1}^{n}\left(k^{2 r+1}+(n+1-k)^{2 r+1}\right) \\ & =2 \sum_{k=1}^{\frac{n-1}{2}}\left(k^{2 r+1}+(n+1-k)^{2 r+1}\right)+2\left(\frac{n+1}{2}\right)^{2 r+1} \end{aligned}

Thus, bnn+1\frac{b_{n}}{n+1} and (n+12)2r\left(\frac{n+1}{2}\right)^{2 r} have the same parity, hence
an={ even, when n3(mod4), odd, when n1(mod4).a_{n}=\left\{\begin{array}{l} \text { even, when } n \equiv 3(\bmod 4), \\ \text { odd, when } n \equiv 1(\bmod 4) . \end{array}\right.

In summary, ana_{n} is even if and only if n0n \equiv 0 or 3(mod4)3(\bmod 4).

Want a route through all this instead of an archive? The track puts 2,000 problems in a working order, from AMC 10 level to the IMO shortlist.

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