Which algorithm will give the desired output given below?
1
24
369
481216
510152025
Answers
Answered by
1
Next number is:
61218243036
Logic to calculate nth number:
1. The first digit of the nth number in series is n
2. Keep multiplying the previous digit by 2 till you reach n^2
E.g. for getting 3rd number in this series
1. First digit is 3
2. Second digit is 3x2 = 6, this is less than 3^2=9. So we repeat this multiplication step.
3. The next digit is 3x3 = 9
So, the 3rd number is 369.
61218243036
Logic to calculate nth number:
1. The first digit of the nth number in series is n
2. Keep multiplying the previous digit by 2 till you reach n^2
E.g. for getting 3rd number in this series
1. First digit is 3
2. Second digit is 3x2 = 6, this is less than 3^2=9. So we repeat this multiplication step.
3. The next digit is 3x3 = 9
So, the 3rd number is 369.
Similar questions