Set Equality Counts

A challenge by mousetail avatar mousetail

Description

It is impossible for sets of certain sizes to have certain total numbers of equalities. For example, a set of 3 items can not have 2 equalities or by the transitive property the third pair must also be equal.

For each number between 1 and 30, print each possible number of equalites separated by spaces, in ascending order and including 0. Each set of numbers should be on it’s own line.

Leaderboard

Author Score
#1 lukegustafson avatar lukegustafson 96
#2 rucin93 avatar rucin93 112
#3 MeWhenI avatar MeWhenI 118
#4 mousetail avatar mousetail 123
#5 XenThe avatar XenThe 202
#6 dmrichwa avatar dmrichwa 606
Challenge ended 3 weeks, 5 days ago
This challenge has ended. You are free to submit more solutions but they won't count for scoring.
You must be logged in to submit a solution.