← Complete problem index

PROJECT EULER · #0818

SET

Statement only · UnsolvedOriginal problem ↗

The SET® card game is played with a pack of 81 distinct cards. Each card has four features (Shape, Color, Number, Shading). Each feature has three different variants (e.g. Color can be red, purple, green).

A SET consists of three different cards such that each feature is either the same on each card or different on each card.

For a collection Cn of n cards, let S(Cn) denote the number of SETs in Cn. Then define F(n)=CnS(Cn)4 where Cn ranges through all collections of n cards (among the 81 cards). You are given F(3)=1080 and F(6)=159690960.

Find F(12).

SET is a registered trademark of Cannei, LLC. All rights reserved. Used with permission from PlayMonster, LLC.

Write-up coming later

The complete problem is available here. An approach, code, and answer will be added later.