The number of six digit positive even numbers in which no two consecutive digits are same will be
The unit's place of the six digit number can be filled in 5 ways.
Then, the place next to it can be filled in 9 ways. (since no consecutive digits are same). Similarly the remaining places can also be filled in 9 ways each.
Hence, total number of ways of filling 6 places such that unit's place is an even number and no two consecutive digits are same is
9×9×9×9×9=95
But, this will include cases where the left most place is 0. In that case we shall get 5 digit numbers satisfying the condition that unit's place is even and no two consecutive digits are same.
Hence, if we denote the number of such 6 digit numbers possible as N6 and 5 digit numbers possible as N5, then
N6+N5=5×95...(1)
Similarly, N5+N4=5×94...(2)
N4+N3=5×93...(3)
N3+N2=5×92...(4)
N2+N1=5×9...(5)
(1) - (2) + (3) - (4) + (5) gives N6+N1=5(95−94+93−92+9)=5[9(1−(−9)5)1−(−9)]=96+92
N1 is the number of one digit positive even number which is 4.
Hence, N6=96+92−4
=96+12