MathDB
Ross wants to play solitaire with his deck of n playing cards

Source: New Zealand NZMOC Camp Selection Problems 2017 p4

September 19, 2021
combinatorics

Problem Statement

Ross wants to play solitaire with his deck of nn playing cards, but he’s discovered that the deck is “boxed”: some cards are face up, and others are face down. He wants to turn them all face down again, by repeatedly choosing a block of consecutive cards, removing the block from the deck, turning it over, and replacing it back in the deck at the same point. What is the smallest number of such steps Ross needs in order to guarantee that he can turn all the cards face down again, regardless of how they start out?