The first vertex can be selected in 20 ways. The remaining two are to be selected from 17 vertices so that they are not consecutive. This can be done in 17C2−16 ways. The total number of ways=20×(17C2−16)
But in this method, each selection is repeated thrice.
Number of triangles=20×(17C2−16)3=800.