In an online event, we have to frame an algorithm to generate a series as given below…,
For input 6, the algorithm has to generate…..
123
624
693
4812
15510
12186.
we thought a lot and really frustrated about the algorithm.
Could any one help us…
EDIT: Got Algorithm. Thanks to Irit katriel
It looks like the i-th number is composed of i,2*i and 3*i, concatenated. The order of concatenation is shifted by 1 each time.