For finding other numbers , subtract A from number 1 time and add B to number 1 time
for i in range ( M ) : NEW_LINE INDENT number = number - A + B NEW_LINE print ( number , end = " ▁ " ) NEW_LINE DEDENT