I am trying to complete the following sigma notation sum but I am honestly stuck, I am not sure how to proceed with the (Xi/2) to the power of i/2. I don't know if I am doing it right in the first place any help would be appreciated it this is the code i have so far.
public static double ComplexSumFunctionA (int[] input) {
double [] arr15 = {1, 2, 3, 4, 5};
double sum = 0;
for (double i = 0; (i < arr15.length/2); i++) {
}
return 0;
}