Golang Simple Solution
\n## Area created by lines \n\n\nArea created by lines:\ny = 2x + 1 (arr[i]=2x+1) \ny-axis \ny = n/2\n\nheight = y2-y1\n\t\t\t=(2(n/2) + 1) - (2(0)+1)\n\t\t\t= 
\n## Area created by lines \n![image](https://assets.leetcode.com/users/images/2a163d14-3821-43a7-8727-0d3c35fc7263_1663067058.7350228.jpeg)\n\nArea created by lines:\ny = 2x + 1 (arr[i]=2x+1) \ny-axis \ny = n/2\n\nheight = y2-y1\n\t\t\t=(2(n/2) + 1) - (2(0)+1)\n\t\t\t= n\nwidth = x1-x2 \n\t\t\t= n/2 - 0\n\t\t\t= n/2\n\t\t\t\ntriangle area   = (height * width)/2 \n\t\t\t\t\t\t= (n * n/2 ) / 2 \n\t\t\t\t\t\t= (n*n) / 4\n\n\n```\nfunc minOperations(n int) int {\n    return (n * n  / 4 )\n}\n```
['Go']