Firstly, consider a and b as one person. Then the number of permutations of 6 people taken six at a time is:
But for each of these combinations there are two ways in which a and b can sit together. Therefore the total number of permutations of the 7 people is given by: