Easiest C++ solution
Intuition\n Describe your first thoughts on how to solve this problem. \n\n# Approach\n Describe your approach to solving the problem. \n\n# Complexity\n- Time 
# Intuition\n<!-- Describe your first thoughts on how to solve this problem. -->\n\n# Approach\n<!-- Describe your approach to solving the problem. -->\n\n# Complexity\n- Time complexity:O(n)\n<!-- Add your time complexity here, e.g. $$O(n)$$ -->\n\n- Space complexity:O(1)\n<!-- Add your space complexity here, e.g. $$O(n)$$ -->\n\n# Code\n```\nclass Solution {\npublic:\n    int minOperations(int n) {\n       int i,j,k=0,s=0;\n       i=n/2;\n       int max=n;\n       \n        for(j=0;j<i;j++){\n            s+=max-2*j-1;\n\n        }\n        return s;\n\n        \n    }\n};\n\n//1 3 5 7\n```
['Math', 'C++']