How many 10-digit numbers can be made with odd digits so that no two consecutive digits are same?
If answer is in form where and are positive integers and also is a prime number, find .
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
There are 5 odd digits : 1 , 3 , 5 , 7 , 9 . First digit of the number can be any of the 5 digits, next one can be any of the 5 digits but the first one: 4 digits, next one any of the 4 digits etc. 5 ∗ 4 9 = 5 ∗ 2 1 8 ⇒ A = 5 , B = 1 8 , A + B = 2 3