The question is
$n$ students are standing in a circle. Find the number of ways in which $k$ students can be selected such that no two of them are together.
I know one method to do this by comparing it with a question like "find number of triangles that can be formed inside an $n$-sided polygon such that no side of triangle is common to the $n$-sided polygon" but that'll be valid only when $k=3$.
I want to know general method to solve such questions and also the principle behind that method.
Any help appreciated