MathDB
Ordering a Closet of Socks

Source: Swiss TST 2019 P8

May 12, 2020
number theorycombinatorics

Problem Statement

Let k,n,rk,n,r be positive integers and r<nr<n. Quirin owns kn+rkn+r black and kn+rkn+r white socks. He want to clean his cloths closet such there does not exist 2n2n consecutive socks nn of which black and the other nn white. Prove that he can clean his closet in the desired manner if and only if rkr\geq k and n>k+rn>k+r.