factorials(n)[i] := product(1 ... i) foreach i within 1 ... n;