Skip to main content

Questions tagged [combinatorics]

For challenges involving combinatorics.

-7 votes
0 answers
137 views

Find all triples (a,b,c) that satisfy (a! * b!) / c! = 1 The following non-trivial combinations were found in the first 50 numbers: (3! * 5!) / 6! = 1 (4! * 23!) / 24! = 1 (6! * 7!) / 10! = 1 In ...
WALTER CANTERO's user avatar
9 votes
1 answer
375 views

In this code-golf challenge, you will work with a construction that was used by the ancient Greeks: the straightedge-and-compass construction. In particular, you will count how many different ...
Peter Kagey's user avatar
  • 8,155
16 votes
17 answers
1k views

OEIS A135404 gives the number of Gessel walks \$g(n)\$ of length \$2n\$. A Gessel walk is a walk on the square lattice starting and ending at the origin with possible steps (1,0), (-1,0), (1,1), (-1,-...
Parcly Taxel's user avatar
  • 4,749
7 votes
9 answers
1k views

Part 2 is available here Card-Jitsu was a mini card-game based on Rock, Paper, Scissors available on the children MMO game Club Penguin. I first wrote a challenge where you needed to implement a clone ...
Weird Glyphs's user avatar
15 votes
9 answers
1k views

Given a positive integer \$n\$, a partition of \$n\$ is an ascending sequence of numbers that sum to \$n\$. Given two partitions \$a\$ and \$b\$, \$a\$ is a refinement of \$b\$ iff \$b\$ can be ...
Wheat Wizard's user avatar
  • 103k
14 votes
11 answers
1k views

A Rota-Baxter word, \$w\$, is a string made of the symbols a, (, and ) such that the ...
Wheat Wizard's user avatar
  • 103k
2 votes
11 answers
823 views

Narrative We are standing at the foot of a mountain. To find the best route when climbing the mountain, let's consider all possible routes. On our route, there is no point lower than our starting ...
Sophia Antipolis's user avatar
15 votes
10 answers
2k views

Narrative Recently, I visited Nice (a French city on the Mediterranean coast) and saw a curious tourist wandering through the city. His walk started at the center of the 'Promenade des Anglais'. He ...
Sophia Antipolis's user avatar

15 30 50 per page
1
2 3 4 5
27