Generate Pattern 2, 33, 222, 5555, 22222, 777777 using constraints

In reply to Desam:

Hi Desam,
can put this into code