No division. Prefix products from left, suffix from right.
Input
4 1 2 3 4
Output
24 12 8 6
2 -1 1
1 -1