Four digit numbers are formed using the digits 1,2,3,4 (repetition is allowed). The number of such four digit numbers divisible by 11 is- (1) 22 (2) 36 (3) 44 (4) 52
I know for a number to be divisible by 11 the sum of digits at even places must be equal to the sum of those at odd places. But how do I use this to get the answer?
Let $abcd$ be the number.
If $a=b$ then $c=d$. There are $4*4=16$ ways that can occur. (Four options for $a$ and four options for $b$).
If $a=b\pm 1$ then $c=d \mp1$. And there are $2*3*3=18$ ways this can occur. (Two choices whether $a > b$ or $b > a$ and three choices from $1,2,3,4$ that are one apart.
If $a = b\pm 2$ then $c = d\mp 2$ and there $ 2*2*2 = 8$ ways.
And if $a = b\pm 4$ then either $a = 1;b=4;c=4;d=1$ or $a=4;b=1;c=1;d=4$. $2$ ways.
So $16 + 18 + 8 + 2 = 44$ ways.