Hi,
This is using 'n', so there would be a lot of possibilities, but I would form a circle with the group of people, then each person would shake the person to their right, and then to their right, one time. This method would not vary because a circle can contain even or odd number of people.
Hope this helps!