Generate the sequence using constraint

This exact question was asked two days ago.