Слави обнови решението на 31.10.2016 00:31 (преди над 1 година)
+package main
+
+func SquareSumDifference(n uint64) uint64 {
+ return (3*n*n*n*n + 2*n*n*n - 3*n*n - 2*n) / 12
+}
PASS ok _/tmp/d20161101-5193-1z5pvv 0.003s PASS ok _/tmp/d20161101-5193-1z5pvv 0.004s PASS ok _/tmp/d20161101-5193-1z5pvv 0.003s PASS ok _/tmp/d20161101-5193-1z5pvv 0.003s