For this Question: Given a number N, find the value of the below Equation for the given number.
Equation: -

N
∑ {(X - 1)<sup>3</sup> + 3(X + 1)<sup>2</sup> + 2}
X = 1<b>User task:</b>
Since this is a functional problem, you don’t have to worry about the input, you just have to complete the function <b>equationSum()</b>, where you will get N as a parameter.

<b>Constraints:</b>
1 <= N <= 100Return the sum of equation.Sample Input:-
1

Sample Output:-
14

Sample Input:-
2

Sample Output:-
44, I have written this Solution Code: def equationSum(N) : 
    
    re=(N*(N+1))//2
    re=re*re
    re=re+9*((N*(N+1))//2)
    re=re+4*N
    return re
, In this Programming Language: Python, Now tell me if this Code is compilable or not?