When someone wants to hammer a nail in each of several posts, put at equal distances along a road, the best way is to begin with the first post and finish with the last one . But how can we accomplish this task in the worst way, that is such that the route be the longest?
Turn on thread page Beta
Excess of labour watch
- Thread Starter
- 16-08-2004 11:46
- 16-08-2004 11:54
I guess in maths terms
call the posts p1, p2, p3... pa where a is the last post. they're in order of number
the order you do them in is p1, pa, p2, p(a-1), p3, p(a-2), p4, p(a-3)
In general form, the nth post you should nail is p(a(1+n^(-1))/2 + n*n^(-1))
I think.. that formula is HORRIBLE but makes good use of the fact that odd powers of -1 are -1, even powers are positive.