Guess the Sequence

Published by Werdna in

Mubashir is trying to figure out the corresponding quadratic formula for the following quadratic sequence of numbers:

NResult
190
2240
3450
4720
51050

If you can figure this out, then help him by creating a function that takes a number n and returns the nth number of this quadratic sequence.

Examples

GuessSequence(1) ➞ 90

GuessSequence(2) ➞ 240

GuessSequence(3) ➞ 450

Notes

If you are not sure about how to find the formula of a quadratic sequence, check the Resources.

Watch a quick demo on how Edabit works.