OK, the answer, I have this nice picture here, which might explain it a bit easier than words...
Although words first:
1) the total weight of the balls along the shorter side of the rectangle is 147899g = 131g x 1129 balls (prime factors)
2) starting with two triangles (-1 ball each), one has:
2(n(n+1)/2-1) = n²+n-2 = (n-1)(n+2) {n being the base of the triangle}
meaning that one can always form a rectangle with one side a ball shorter than a (complete) triangle and the longer side 2 balls longer than a triangle.
As n-1=1129, n+2=1132, which leaves 1131 rows remaining after taking one row of.
Although words first:
1) the total weight of the balls along the shorter side of the rectangle is 147899g = 131g x 1129 balls (prime factors)
2) starting with two triangles (-1 ball each), one has:
2(n(n+1)/2-1) = n²+n-2 = (n-1)(n+2) {n being the base of the triangle}
meaning that one can always form a rectangle with one side a ball shorter than a (complete) triangle and the longer side 2 balls longer than a triangle.
As n-1=1129, n+2=1132, which leaves 1131 rows remaining after taking one row of.
Comment