A company has offices and wants to set up two-way communication between every pair of offices. However, the smallest offices will not have direct communication with one another, though each of them can still connect directly with the remaining offices. How many communication channels are needed in total?