A ‘step number’ is a number consisting of at least 3 strictly increasing numbers with a fixed 'step size'. For example, 357 is a step number with 3 steps and step size 2, and 591317 is a step number with 4 steps and step size 4 (5|9|13|17).
Determine the smallest step number that is also a palindrome.
If such a number doesn’t exist, submit 0.
The step number as defined above is ascending. A descending step number is a step number with a negative step size. 1086 is a step number with 3 steps and step size negative 2 (10|8|6).
Determine the smallest number that is an ascending step number as well as a descending step number.
If such a number doesn’t exist, submit 0.