First thing to note is this problem allows repetition, so all digits could take 10 values (from 0-9) except the first (which cannot take 0)
If there were no restrictions we would have 9*10*10*10*10 5 digit integers possible.
But we have a condition where no 2 digits can be consecutive. (Say I pick the 1st digit as '1', then the 2nd can take any value except '2') Thats 9 options.
So, 1st position has 9 possibilities,
2nd has 9,
3rd again has 9 (Now if the 2nd is say '5', 3rd can take any value expect '6')
and so on.
Together, we get 9^5.
Hope you understood
GmatKiss wrote:
Hi Shankar,
I am unable to follow.
Could you please explain in detail.
TIA,
GK