Pergunta de entrevista da empresa IBM

What comes next? 2, 9, 28, 65, 126 ?

Respostas da entrevista

Sigiloso

3 de out. de 2017

The answer above is correct... If you subtract 1 from each number in the sequence 2-1=1 9-1=8 28-1=27 65-1=64 126-1=125 Note: Each number on the right hand side is a perfect cube 1 =1^3 8=2^3 27=3^3 64=4^3 125=5^3 From this we can conclude the formula is n^3+1 6^3 =216 +1 = 217 The next number in the sequence is 217

1

Sigiloso

16 de ago. de 2017

179. The difference is every 4th prime number.