Someone tell me how to figure out the possible non-decreasing sequences.