Q. How many integers with four different digits are there between 1000 and 9999 such that the absolute value of the difference between the first digit and the last digit is 2?

 140  108 Permutations and Combinations Report Error

Solution:

In the set there are sixteen pairs of numbers . difference is \pm 2 . All but can be used as the first and last digit, respectively, of the required number. For each of the 15 ordered pairs, there are ways to fill the remaining middle two digits. Thus there are numbers of the required form.