If N objects are arranged in a row, then the number of ways of selecting three of these objects so that no two of them are next to each other is