MathDB
maximum days rainbow can live

Source: Iran second round 2011

April 29, 2011
inductioncombinatorics proposedcombinatorics

Problem Statement

rainbow is the name of a bird. this bird has nn colors and it's colors in two consecutive days are not equal. there doesn't exist 44 days in this bird's life like i,j,k,li,j,k,l such that i<j<k<li<j<k<l and the bird has the same color in days ii and kk and the same color in days jj and ll different from the colors it has in days ii and kk. what is the maximum number of days rainbow can live in terms of nn?