Replace the variable n in your equation with an element of the array: n[idx] where idx is the index into the array