⎗ ✓ 1 2 3 4 5 6 7 8 9 10let value i = let sum = ref 1 in for j = 1 to i do sum := !sum * 3 done; !sum let rec sum3 n = if n = 0 then 1 else (value n) + sum3 (n - 1)
Warning LINK You are about to visit a link which has been flagged with the above content warnings. Do you wish to continue? Continue Cancel