Sum of any 2 adjacent digits is odd ⇒ Odd and even digits will alternate Case I For n; Repetition is not allowed ⇒ OEOEO is the only possibility of arrangement of digits, Where O = Odd digit, E = Even digit. So number of Arrangements n=
3
O
×
2
E
×
2
O
×
1
E
×
1
O
=12 Case I For m ; Repetition is allowed ⇒ Two possipilities (a) OEOEO Number of such arrangements =