This is a mathematical activity that fulfils KS2 NC computing requirements about repetition and variables and that of KS3 which requires learning a text-based language. There is also plenty of mathematical vocabulary!
You must pick a starting number, an increment and a divisor. When you’ve done that you will be given two sequences side by side.
With more than one variable it is important to isolate them, in other words to only alter the value of one at a time until you have fully explored it.
What interesting number patterns can you find, describe and explain?
s = int(input("Enter the starting number: "))
i = int(input("Enter the increment: "))
d = int(input("Enter the divisor: "))
for x in range(s, 20*i+s, i):
print(x, " ", x%d)