I'm trying to figure out what algorithm / method I can use to figure out how to pair people together such that the pairs aren't repeated
i.e. if a unique individual is denoted by Px where x is their "number"
Day 1 : P1-P2; P3-P4; P5-P6; Day 2 : P1-P3; P2-P5; P4-P6; Day 3 : P1-P4; P3-P6; P3-P5;
I did the above manually and no pairs are repeated on subsequent days. I need to do this but for 40 people over 20 days.
Is there a quick method or algorithm I can use?