[Proof] Since
(n+2)an+1=nan+2(n+1)2r
Therefore □
(n+2)(n+1)an+1=(n+1)nan+2(n+1)2r+1
Let
bn=(n+1)nan,n=1,2,3,⋯bn+1=bn+2(n+1)2r+1
Then □
Thus, from b1=2 we have
bn=2k=1∑nk2r+1,n=1,2,⋯
When n=1, it is clear from b1=2 that 1⋅(1+1)∣b1. Suppose n>1, since
bn=2n2r+1+k=1∑n−1(k2r+1+(n−k)2r+1)
And 2r+1 being odd implies
n∣k2r+1+(n−k)2r+1,
Therefore
n∣bn
On the other hand, from
bn=k=1∑n(k2r+1+(n+1−k)2r+1)
And
n+1∣k2r+1+(n+1−k)2r+1
We know
n+1∣bn
By the fact that n and n+1 are coprime, we get
n(n+1)∣bn,n=1,2,3,⋯
That is, an=n(n+1)bn is a positive integer.
Next, we discuss the parity of an. When n is even, it is clear that an and nbn have the same parity. Also, 2b2=1+22r+1, and when n>2,
bn=2n2r+1+k=1∑n−1(k2r+1+(n−k)2r+1)=2n2r+1+2k=1∑2n−2(k2r+1+(n−k)2r+1)+2⋅(2n)2r+1
Therefore, nbn and (2n)2r have the same parity. This immediately gives us
an={ even, when n≡0(mod4), odd, when n≡2(mod4).
When n is odd, it is clear that an and n+1bn have the same parity. Since b1=2, and when n>1,
bn=k=1∑n(k2r+1+(n+1−k)2r+1)=2k=1∑2n−1(k2r+1+(n+1−k)2r+1)+2(2n+1)2r+1
Thus, n+1bn and (2n+1)2r have the same parity, hence
an={ even, when n≡3(mod4), odd, when n≡1(mod4).
In summary, an is even if and only if n≡0 or 3(mod4).