# Math problem

**URL:** <https://boards.straightdope.com/t/math-problem/144750>\
**Category:** Factual Questions\
**Created:** [December 24, 2002, 6:48pm UTC](https://boards.straightdope.com/t/math-problem/144750 "2002-12-24T18:48:31Z")\
**Posts on this page:** 14\
**Page:** 2

<div class="post-metadata">

**Author:** ![Achernar](https://avatars.discourse-cdn.com/v4/letter/a/e274bd/32.png) [@Achernar](https://boards.straightdope.com/u/Achernar)\
**Post date:** [December 25, 2002, 10:14am UTC](https://boards.straightdope.com/t/math-problem/144750/21 "2002-12-25T10:14:07Z")

</div>

> [@](#):
>
> _Originally posted by ntucker \*  
> The distance traveled on the circle is not **2(pi - theta) × 1000**, it’s \*\*2(pi - 2_theta) x 1000\*\* (since you effectively cut two wedges out of the circle, not one).

I agree that you cut out two wedges, but I took that into account. Theta is the angle between the ray OA and the x-axis, so each wedge is this size, theta. Thus the total number of radians you must traverse around the circle is 2pi - 2theta.

---

<div class="post-metadata">

**Author:** ![spinky](https://avatars.discourse-cdn.com/v4/letter/s/59ef9b/32.png) [@spinky](https://boards.straightdope.com/u/spinky)\
**Post date:** [December 25, 2002, 10:32am UTC](https://boards.straightdope.com/t/math-problem/144750/22 "2002-12-25T10:32:37Z")

</div>

:smack:

---

<div class="post-metadata">

**Author:** ![aahala](https://avatars.discourse-cdn.com/v4/letter/a/a88e4f/32.png) [@aahala](https://boards.straightdope.com/u/aahala)\
**Post date:** [December 25, 2002, 2:36pm UTC](https://boards.straightdope.com/t/math-problem/144750/23 "2002-12-25T14:36:16Z")

</div>

Let me claim again that this problem can not be solved as a math problem.

The minimum distance necessary to check every point on a circle, where a line may be tangent to the circle is the circumference, 6280K and we start 1000K from the circumference. That’s more than the fuel remaining.

---

<div class="post-metadata">

**Author:** ![JRootabega](https://avatars.discourse-cdn.com/v4/letter/j/8e7dd6/32.png) [@JRootabega](https://boards.straightdope.com/u/JRootabega)\
**Post date:** [December 25, 2002, 3:05pm UTC](https://boards.straightdope.com/t/math-problem/144750/24 "2002-12-25T15:05:15Z")

</div>

Please prove that we must travel the entire circumference.

---

<div class="post-metadata">

**Author:** ![aahala](https://avatars.discourse-cdn.com/v4/letter/a/a88e4f/32.png) [@aahala](https://boards.straightdope.com/u/aahala)\
**Post date:** [December 25, 2002, 3:19pm UTC](https://boards.straightdope.com/t/math-problem/144750/25 "2002-12-25T15:19:42Z")

</div>

You can intersect a straight line by moving in a straight line, in BOTH directions, but this assumes you are not moving parrallel to the line. And the point of intersection could be far beyond ANY finite amount of fuel.

You must check out every point of tangency. The absolute minimun distance to do this is to travel the circle. Any larger circle or polygon would work too but would take even more fuel.

---

<div class="post-metadata">

**Author:** ![Greg\_Charles](https://avatars.discourse-cdn.com/v4/letter/g/839c29/32.png) [@Greg\_Charles](https://boards.straightdope.com/u/Greg_Charles)\
**Post date:** [December 25, 2002, 4:58pm UTC](https://boards.straightdope.com/t/math-problem/144750/26 "2002-12-25T16:58:58Z")

</div>

OK, I think I’m following the logic here. Spiff drives due east (or along the X-axis) to some point past the imaginary circle. (Point D in Viking’s notation.) He then turns left and follows the tangent line he is on until it intersects the circle. (Point A according to Viking.) Then he follows the circumference until he finds his ship. He will have to drive at most to point B to guarantee finding his ship … unless of course his ship is on the short arc from A to B, in which case he would have hit the coastline before D and followed it to his ship. All right then, if we call his origin O, then the angle AOD is arcsec(D). (Boy, it took a lot of thought to scrape that out of my memory, but I think it’s right.) DOB will be the negative of this angle. The distance from point D to point A is r \* tan(theta). So the formula for the distance travelled is:

D + 1000 \* (tan(theta) + 2_pi - 2_theta)

I’m way past the point where I’m able differentiate that mess, but by brute force I come to Achernar’s conclusion, i.e. D = 154.7, DIST = 6986.04 is the best Spiff can do by that strategy.

Hey, at least we showed aahala that it’s possible to beat r + 2_pi_r. OK Spiff is possibly dead, but I still count that as a moral victory for us.

---

<div class="post-metadata">

**Author:** ![rsa](https://avatars.discourse-cdn.com/v4/letter/r/839c29/32.png) [@rsa](https://boards.straightdope.com/u/rsa)\
**Post date:** [December 25, 2002, 7:44pm UTC](https://boards.straightdope.com/t/math-problem/144750/27 "2002-12-25T19:44:41Z")

</div>

This is too easy.

Shoreline sand dunes form parallel to the shoreline. The shoreline in this problem is straight for thousands of kilometers.

Spiff should drive for 1000 km exactly perpendicular to the sand dunes. If he doesn’t find his space ship, he should drive in the opposite direction perpendicular to the sand dunes for 2000 km.

There’s his ship. Maximum distance traveled is 3000 km.

---

<div class="post-metadata">

**Author:** ![rsa](https://avatars.discourse-cdn.com/v4/letter/r/839c29/32.png) [@rsa](https://boards.straightdope.com/u/rsa)\
**Post date:** [December 25, 2002, 9:24pm UTC](https://boards.straightdope.com/t/math-problem/144750/28 "2002-12-25T21:24:46Z")

</div>

:smack:

I claim temporary insanity. My answer obviously only works if the original trip was directly away from the shoreline.

Although the problem doesn’t state it explicitly, surely Spiff knows the compass orientation of the shoreline (e.g., sea to the north, land to the south). Of course if Spiff knows the orientation of the shoreline he wouldn’t need to rely on the direction of the dunes to point him in the correct starting direction.

If Spiff knows which direction the shoreline is then I think he could get back to his ship with his remaining fuel. If he only has the orientation of the sand dunes to narrow down the shoreline direction to two opposite directions, then I’m not sure that he has enough fuel to find his ship. Perhaps someone more mathematically inclined can figure that out.

---

<div class="post-metadata">

**Author:** ![Squink](https://avatars.discourse-cdn.com/v4/letter/s/b5e925/32.png) [@Squink](https://boards.straightdope.com/u/Squink)\
**Post date:** [December 25, 2002, 10:50pm UTC](https://boards.straightdope.com/t/math-problem/144750/29 "2002-12-25T22:50:39Z")

</div>

> [@](#):
>
> If Spiff knows which direction the shoreline is then I think he could get back to his ship with his remaining fuel.

Unless he takes the exact same path back as he took out, irregularities in the terrain, i.e. dunes, could still make it impossible for Spiff to find his ship with the fuel available. This being a math problem, a single infinitely tall dune in the wrong place could stymy his plan for returning to the radius of the circle, or for finding the seashore.

---

<div class="post-metadata">

**Author:** ![William\_Ashbless](https://avatars.discourse-cdn.com/v4/letter/w/a87d85/32.png) [@William\_Ashbless](https://boards.straightdope.com/u/William_Ashbless)\
**Post date:** [December 25, 2002, 11:17pm UTC](https://boards.straightdope.com/t/math-problem/144750/30 "2002-12-25T23:17:29Z")

</div>

I seem to recall seeing this problem somewhere. I think the solution is some sort of spiral, perhaps an exponential spiral. I seem to recall seeing the puzzle in terms of being on the ocean and there being a straight shore, or being a forest with a straight edge on one side. I don’t recall whether or not the distance to the shore was known or whether there was a “fuel constraint”, but just that a minimum-distance path to search for the straight edge was computable.

Wish I could help beyond this, but I just found this thread, and I’ll have to go off and play with it for a while. I doubt I’ll be able to prove it to be a minimum amount.

---

<div class="post-metadata">

**Author:** ![spinky](https://avatars.discourse-cdn.com/v4/letter/s/59ef9b/32.png) [@spinky](https://boards.straightdope.com/u/spinky)\
**Post date:** [December 26, 2002, 12:19am UTC](https://boards.straightdope.com/t/math-problem/144750/31 "2002-12-26T00:19:30Z")

</div>

> [@](#):
>
> \*Originally posted by Squink \*  
> \*\*Unless he takes the exact same path back as he took out, irregularities in the terrain, i.e. dunes, could still make it impossible for Spiff to find his ship with the fuel available. This being a math problem, a single infinitely tall dune in the wrong place could stymy his plan for returning to the radius of the circle, or for finding the seashore. \*\*

What? If you want to add a silly constraint like that, then there is **no** method that will work reliably.

See my first post in this thread for a solution which works if you know the orientation of the coastline (even if you didn’t travel back on the exact same path you originally took).

---

<div class="post-metadata">

**Author:** ![Squink](https://avatars.discourse-cdn.com/v4/letter/s/b5e925/32.png) [@Squink](https://boards.straightdope.com/u/Squink)\
**Post date:** [December 26, 2002, 12:40am UTC](https://boards.straightdope.com/t/math-problem/144750/32 "2002-12-26T00:40:26Z")

</div>

> [@](#):
>
> If you want to add a silly constraint like that, then there is no method that will work reliably.

Exactly my point. The OP specifically mentions sand dunes, but nothing about their size distribution. Traveling 1000 km over dunes will not get you to the same point as traveling “as the crow flies.” Even an error of a km or two is likely to cause Pirx to miss his ship.

---

<div class="post-metadata">

**Author:** ![spinky](https://avatars.discourse-cdn.com/v4/letter/s/59ef9b/32.png) [@spinky](https://boards.straightdope.com/u/spinky)\
**Post date:** [December 26, 2002, 1:16am UTC](https://boards.straightdope.com/t/math-problem/144750/33 "2002-12-26T01:16:33Z")

</div>

> [@](#):
>
> \*Originally posted by Squink \*  
> \*\*Exactly my point. The OP specifically mentions sand dunes, but nothing about their size distribution. Traveling 1000 km over dunes will not get you to the same point as traveling “as the crow flies.” Even an error of a km or two is likely to cause Pirx to miss his ship. \*\*

Well, then I guess that must be the answer! He can’t win!

Oh wait, I guess there is one possibility: **that it’s a contrived scenario set up for the purpose of a math problem, and you should treat it as such.** If that’s too much to ask, don’t bother doing the problem. It’s just for fun.

Besides, the problem doesn’t state that his odometer is based on the linear distance traveled at the wheels. I heard he has a super-high-precision accelerometer-based odometer which keeps track of acceleration (and thus relative position) in threespace, and then calculates distance traveled across the plane perpendicular to the force of gravity. So there.

---

<div class="post-metadata">

**Author:** ![borschevsky](https://avatars.discourse-cdn.com/v4/letter/b/97f17d/32.png) [@borschevsky](https://boards.straightdope.com/u/borschevsky)\
**Post date:** [December 26, 2002, 1:24am UTC](https://boards.straightdope.com/t/math-problem/144750/34 "2002-12-26T01:24:47Z")

</div>

I think that the problem may not be stated properly. I have seen a similar problem where you’re trapped in a forest and you know there’s a straight road that’s 1000 k from your position. But in that question, you just have to find the **road** , not a point that’s on the road _and_ 1000k from your starting point. In that case:

1. Call Spiff’s starting position the origin, and point your ship 60 degrees to the x-axis. Drive straight to the point ( 1000/sqrt(3), 1000 ). This is a distance of **2000/sqrt(3)** (ie ~1000+154, as mentioned above).

2. Take the tangent to the south-east, intersecting the circle at ( 1000\*sqrt(3)/2, 500 ). This is a distance of **1000/sqrt(3)**.

3. Drive 7/12 of the way around the circle, through (1000,0), (0,-1000), and stop at (-1000,0). This is a distance of **1000_7/6_pi**.

4. Now you can just drive straight North to (-1000,1000). Distance: **1000**. This step doesn’t work for our phrasing of the problem, because we can find the coastline, but not necessarily the ship.

So, total distance: 1000_sqrt(3) + 1000_7/6\*pi + 1000 = **6397 k**.

However, that doesn’t work for this phrasing of the problem. And since the answer works out to so close to 6400, I think it is the intended idea.

[Previous page](https://boards.straightdope.com/t/math-problem/144750.md?page=1)
