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 equalities separated by spaces, in ascending order and including 0. Each set of numbers should be on it’s own line.

Leaderboard

Author Bytes
#1 ovs-code avatar ovs-code 81
#1 lukegustafson avatar lukegustafson 81
#3 NicknamedTwice avatar NicknamedTwice 84
#3 NicknamedTwice avatar NicknamedTwice 84
#5 mousetail avatar mousetail 86
#5 mousetail avatar mousetail 86
#7 xnor-gate avatar xnor-gate 89
#7 EroticShiveringKingBanana avatar EroticShiveringKingBanana 89
#9 b-kamphorst avatar b-kamphorst 97
#9 AlephSquirrel avatar AlephSquirrel 97
Challenge ended 04 October 2025 ago
This challenge has ended. You are free to submit more solutions but they won't count for scoring.