array element multiplications in O(N) without division