as my last question here this is the same problem but with 2 repeated digits,
here is my approach:
To solve this problem we need to devide it into 5 cases:
1 The integer contains one 8 and one 6 : 4 x 4 x 3 x 2 x 1 = 96
2- The integer contains one 8 and two 6s or one 6 and two 8s and no 0: (5C2) x 3 x 2 x 1 = 60
3- As same as 2 but containing 0: (4C1) x (4C2) x (3C2) x 2 = 144
4- The integer contains two 8’s and two 6’s with no 0: (5C2) x (3C2) x (2C1) x 2 = 120
5- Same as 4 with 0: (4C1) x (4C2) x (2C2) = 24
The final result would be : 96 + 2(60) + 2(144) + 120 + 24 = 648
but when I used an online tool I got 588 as result.
(ii)Find the number of integers in (i) which satisfies “If there is 8, then it is followed by 6”