Solved maximum sequence