Number of ways to choose an order pair (a,b) of numbers from the set {1,2,3..........10} such that |a-b|≤5 is
80
|a−b|≤5 means| a-b|=0 or 1≤|a−b|≤5|a−b|=0⇒a=b which is possible in 10 ways. Let x, y, z represent, numbers before, in between and after a and b then x+y+z=8,0≤y≤4 and x,z≥0
= coefficient of x8in(1+x+....x8)2(1+x+.....x4)
= 35
a, b, can be in any order
Total ways = 2×35+10=80.