Method 1: Where n=0 we see that the combination A odd, B even is possible. Where n=1 we see that the combination A odd, B odd is also possible. Now if
(1+2 )n = An + Bn 2


An+1 + Bn+1 2=(1+2)( An + Bn 2)= An +2 Bn +( An + Bn )2

so An+1 and An have the same parity which means that all the Ai are odd. The values of B are alternately odd and even, odd when n is odd and even when n is even, that is B2i is even and B2i+1 is odd.

Method 2: By the Binomial Theorem
(1+2 )n =1+n2+( n 2 )(2 )2 +( n 3 )23 +....

All the Binomial coefficients are integers and so all the coefficients from the ( n 2 )(2 )2 onwards are even. It follows that all the terms independent of 2 have odd coefficients. The coefficients of 2 are odd when n is odd and even when n is even.

Generalisation:
(1+p )n =1+np+( n 2 )(p )2 +( n 3 )p3 +....

so writing
(1+p )n = An + Bn p

it follows that An 1 (mod p) and always odd and Bn n (mod p) so it is odd or even according to whether n is odd or even mod p.