yes the shame of it, spent ages last night trying to solve this and admitted defeat, i
would be very pleased if anyone could help me. The question is as follows.
join the numbers horizontally or vertically so that you make a continuous path
connecting twelve numbers that add up to 174
I imagine this is a real nightmare to do with pen and paper only, but very easy with a computer. I used Excel, copied the numbers there in cells a1..e5, and made the equation
=sum(a1:e5)-174
nearby. Originally that gives 175 as the sum of the 25 numbers is 349 and 349-174 = 175. Next I started deleting numbers from the box until I ended up with zero, avoiding untraceable paths such as isolated numbers or three or more with only one neighbor. Once the equation gives a zero the sum of what is left is 174. If it is positive, delete some more; if negative, replace something and adjust. ctrl-z helps nicely. Here are a few of the prettier solutions I came up with.
12-10-17-13-16-12-17-11-11-15-12-16-10-13
A symmetrical horse shoe that starts and ends on the bottom row. Goes along the entire edge of the box, except for the bottom corners of the middle of the bottom row.
17-12-14-10-18-18-17-12-12-16-13-15
This one starts and ends at the top and bottom of the middle column. It goes through everything, except the leftmost and the rightmost column, and avoids all 11's.
10-17-11-15-12-16-10-17-13-15-12-16-10
My favorite. There are three 10's in the box and in this solution they are at the start, middle, and end of the line. The pattern doesn't use diagonal moves at all - it's a spiral that starts at the center and goes clockwise along the edge.
10-12-12-13-10-16-11-14-12-11-10-12-13-18
There are no solutions with diagonal moves only, but this is pretty close as b3 is the only"white square" missing. Start near the lower left corner, zigzag right, up along the d-column, zigzag left, and end up in b4.
There are heaps of other solutions if you wish to find your own. I hope this helps. 🙂
Sorry about that. I should read more carefully. Exactly 12 numbers. And no diagonals. All but one of mine have diagonals, and the spiral has 13 numbers, so back to the drawing board it is.
If 12 numbers form a sum of of 174, then the average of the 12 numbers is 14.5. To avoid fractions, I doubled all the numbers, so the average is 29. I then subtracted 29 from each, and sought a path of 12 numbers with a sum of zero. Excel can paint all negatives red and positive black with a single click which also helped.
And that is fairly easy to see as there are lots of pairs of adjacent numbers with the same absolute value but a different sign. Pick both for a sum of zero. In other words, I sought for six pairs of numbers where the sum of the two numbers is 29 as 6 x 29 = 174, and found one.
In chess terms, the path I found is on an A1..E5 board,
Originally posted by talzamir Sorry about that. I should read more carefully. Exactly 12 numbers. And no diagonals. All but one of mine have diagonals, and the spiral has 13 numbers, so back to the drawing board it is.
If 12 numbers form a sum of of 174, then the average of the 12 numbers is 14.5. To avoid fractions, I doubled all the numbers, so the average is 29. I then subtracted ...[text shortened]... hers, such as
Originally posted by robbie carrobie yes the shame of it, spent ages last night trying to solve this and admitted defeat, i
would be very pleased if anyone could help me. The question is as follows.
join the numbers horizontally or vertically so that you make a continuous path
connecting twelve numbers that add up to 174
Originally posted by Phlabibit Congratulations on your kid getting into Harvard.
P-
LOL, this is primary six homework, age ten! The shame of not being able to solve it.
My kid will be doing well to write his name when he leaves school, hes a brilliant kid,
just not very brainy!
There are 27 ways of traversing the grid to get 174, counting only those that go through unique combinations of cells:
First row is indices, next row is values added up.
Indices are row_col, top down, left to right, so 0_0 is top left.