Write a function that receives an array of x integers and returns an array of x integers in the Nth term of a quadratic number sequence (where x is the length of the incoming array). Your function should return the continuation of the quadratic sequence of the length equal to the length of the given array.
quadSequence([48, 65, 84]) ➞ [105, 128, 153]
quadSequence([0, 1, 6, 15, 28]) ➞ [45, 66, 91, 120, 153]
quadSequence([9, 20, 33, 48]) ➞ [65, 84, 105, 128]
Both positive and negative numbers are included in the test cases.