Muthu Ganapathy Nathan
Muthu Ganapathy Nathan

Reputation: 3307

What is the formula for the following sequence? 123, 624, 693, 4812, etc

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

Upvotes: 3

Views: 296

Answers (1)

Irit Katriel
Irit Katriel

Reputation: 3564

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.

Upvotes: 17

Related Questions