R=range(1,10) for w in R: for i in R: for j in R: if w>1 and i+(w-1)*j<10:print`range(i,i+w*j,j)`[1::3]