Блог пользователя ciphAx

Автор ciphAx, история, 6 лет назад, По-английски
Hello,
It would be great if I can get some nudge in the right direction for the following question :

There is a sequence that contains in ascending order natural numbers that are products of at least two natural consecutive number, example : 

2,6,12,20,24,30,42,56,60,72,..
Find the nth natural number in the sequence

n = 1 , result = 2 ( 1 * 2)

n = 2 , result = 6 ( 2 * 3)

n = 4, result = 20 ( 4 * 5)

n = 9, result = 60 ( 3 * 4* 5)

1 <= n <= 10^6

result must be smaller than or equal to 10^12.

Полный текст и комментарии »

  • Проголосовать: нравится
  • -5
  • Проголосовать: не нравится