wiz-icon
MyQuestionIcon
MyQuestionIcon
1
You visited us 1 times! Enjoying our articles? Unlock Full Access!
Question

Find the number of integers from 0 to 999999 that have no two equal neighboring digits in their decimal representation.


Open in App
Solution

Find the total number digits from 0 to 999999.

As we know that an integer is a whole number from a set of negative, non-negative, positive and 0 numbers.

Case-1 From 0 to 9

the total number of digits from 0 to 9 having no neighbor common is equal to 10

Case-2 The total number of digits from 10 to 99 having no neighbor common,

=9×9

=81

Case-3 From 100 to 999

=9×9×9=93

Case-4 From 1000 to 9999

=9×9×9×9=94

Case-5 From 10000 to 99999

equals 9 cross times 9 cross times 9 cross times 9 cross times 9
equals 9 to the power of 5

Case-6 From 100000 to 999999

=9×9×9×9×9×9=96

Total number of digits =10+92+93+94+95+96

Hence, the total number of digits are10+92+93+94+95+95.


flag
Suggest Corrections
thumbs-up
0
Join BYJU'S Learning Program
similar_icon
Related Videos
thumbnail
lock
Inequations I
QUANTITATIVE APTITUDE
Watch in App
Join BYJU'S Learning Program
CrossIcon