I have the following function, and I want to prove/disprove that it is $\Omega$(n$^2$):
\begin{cases} 4[sum(n/2,n)],& \text{if n is even } \\ 2n-1+sum(n-3,n), & \text{otherwise} \end{cases} (it should be 2 n-1, so a space between 2 and n)
where sum( j,k ) is a ‘partial arithmetic sum’ of the integers from j up to k, that is
\begin{cases} 0& \text{if j>k } \\ j + (j+1) + (j+2) + ... + k, & \text{otherwise} \end{cases}
e.g. sum(3,4) = 3 + 4 = 7, etc. Note that sum(j,k) = sum(1,k) – sum(1,j-1)
I tried to solve it, however have not come across one before where it has conditions...