home *** CD-ROM | disk | FTP | other *** search
/ ftp.pasteur.org/FAQ/ / ftp-pasteur-org-FAQ.zip / FAQ / puzzles / archive / analysis next >
Encoding:
Internet Message Format  |  1996-04-26  |  32.1 KB

  1. Received: from MIT.EDU (SOUTH-STATION-ANNEX.MIT.EDU [18.72.1.2]) by bloom-picayune.MIT.EDU (8.6.13/2.3JIK) with SMTP id OAA02517; Sat, 20 Apr 1996 14:42:42 -0400
  2. Received: from [199.164.164.1] by MIT.EDU with SMTP
  3.     id AA07980; Sat, 20 Apr 96 14:13:37 EDT
  4. Received: by questrel.questrel.com (940816.SGI.8.6.9/940406.SGI)
  5.     for news-answers-request@mit.edu id LAA25288; Sat, 20 Apr 1996 11:14:27 -0700
  6. Newsgroups: rec.puzzles,news.answers,rec.answers
  7. Path: senator-bedfellow.mit.edu!bloom-beacon.mit.edu!spool.mu.edu!howland.reston.ans.net!europa.eng.gtefsd.com!uunet!questrel!chris
  8. From: chris@questrel.questrel.com (Chris Cole)
  9. Subject: rec.puzzles Archive (analysis), part 02 of 35
  10. Message-Id: <puzzles/archive/analysis_745653851@questrel.com>
  11. Followup-To: rec.puzzles
  12. Summary: This is part of an archive of questions
  13.  and answers that may be of interest to
  14.  puzzle enthusiasts.
  15.  Part 1 contains the index to the archive.
  16.  Read the rec.puzzles FAQ for more information.
  17. Sender: chris@questrel.questrel.com (Chris Cole)
  18. Reply-To: archive-comment@questrel.questrel.com
  19. Organization: Questrel, Inc.
  20. References: <puzzles/archive/Instructions_745653851@questrel.com>
  21. Date: Wed, 18 Aug 1993 06:04:22 GMT
  22. Approved: news-answers-request@MIT.Edu
  23. Expires: Thu, 1 Sep 1994 06:04:11 GMT
  24. Lines: 795
  25. Xref: senator-bedfellow.mit.edu rec.puzzles:24995 news.answers:11515 rec.answers:1915
  26. Apparently-To: news-answers-request@mit.edu
  27.  
  28. Archive-name: puzzles/archive/analysis
  29. Last-modified: 17 Aug 1993
  30. Version: 4
  31.  
  32.  
  33. ==> analysis/bicycle.p <==
  34. A boy, a girl and a dog go for a 10 mile walk.  The boy and girl can
  35. walk at 2 mph and the dog can trot at 4 mph.  They also have a bicycle
  36. which only one of them (including the dog!) can use at a time.  When
  37. riding, the boy and girl can travel at 12 mph while the dog can pedal
  38. at 16 mph.  What is the shortest time in which all three can complete
  39. the trip?
  40.  
  41. ==> analysis/bicycle.s <==
  42. First note that there's no apparent way to benefit from letting either the
  43. boy or girl ride the bike longer than the other.  Any solution which gets the
  44. boy there faster, must involve him using the bike (forward) more; similarly
  45. for the girl.  Thus the bike must go backwards more for it to remain within
  46. the 10-mile route.  Thus the dog won't make it there in time.  So the solution
  47. assumes they ride the bike for the same amount of time.
  48.  
  49. Also note that there's no apparent way to benefit from letting any of the three
  50. arrive at the finish ahead of the others.  If they do, they can probably take
  51. time out to help the others.  So the solution assumes they all finish at the
  52. same time.
  53.  
  54. The boy starts off on the bike, and travels 5.4 miles.  At this
  55. point, he drops the bike and completes the rest of the trip on foot.  The
  56. dog eventually reaches the bike, and takes it *backward* .8 miles (so the
  57. girl gets to it sooner) and then returns to trotting.  Finally, the girl makes
  58. it to the bike and rides it to the end.  The answer is 2.75 hours.
  59.  
  60. The puzzle is in Vasek Chvatal, Linear Programming, W. H. Freeman & Co.
  61. The generalized problem (n people, 1 bike, different walking and riding speeds)
  62. is known as "The Bicycle Problem".  A couple references are
  63.  
  64. Masuda, S. (1970). "The bicycle problem," University of California, Berkeley:
  65.   Operations Research Center Technical Report ORC 70-35.
  66.  
  67. Chvatal, V. (1983). "On the bicycle problem," Discrete Applied Mathematics 5:
  68.   pp. 165 - 173.
  69.  
  70. As for the linear program which gives the lower bound of 2.75 hours, let
  71. t[person, mode, direction] by the amount of time "person" (boy, girl or dog)
  72. is travelling by "mode" (walk or bike) in "direction" (forward or backwards).
  73. Define Time[person] to be the total time spent by person doing each of these
  74. four activities. The objective is to minimize the maximum of T[person], for
  75. person = boy, girl, dog, e.g.
  76.  
  77.     minimize T
  78.     subject to  T >= T[boy], T >= T[girl], T >= T[dog].
  79.  
  80. Now just think of all the other linear constraints on the variables t[x,y,z],
  81. such as everyone has to travel 10 miles, etc. In all, there are 8 contraints
  82. in 18 variables (including slack variables). Solving this program yields the
  83. lower bound.
  84.  
  85. ==> analysis/boy.girl.dog.p <==
  86. A boy, a girl and a dog are standing together on a long, straight road.
  87. Simulataneously, they all start walking in the same direction:
  88. The boy at 4 mph, the girl at 3 mph, and the dog trots back and forth
  89. between them at 10 mph.  Assume all reversals of direction instantaneous.
  90. In one hour, where is the dog and in which direction is he facing?
  91.  
  92. ==> analysis/boy.girl.dog.s <==
  93. The dog's position and direction are indeterminate, other than that the
  94. dog must be between the boy and girl (endpoints included).  To see this,
  95. simply time reverse the problem.  No matter where the dog starts out,
  96. the three of them wind up together in one hour.
  97.  
  98. This argument is not quite adequate.  It is possible to construct problems
  99. where the orientation changes an infinite number of times initially, but for
  100. which there can be a definite result.  This would be the case if the positions
  101. at time t are uniformly continuous in the positions at time s, s small. 
  102.  
  103. But suppose that at time a the dog is with the girl.  Then the boy is at
  104. 4a, and the time it takes the dog to reach the boy is a/6, because
  105. the relative speed is 6 mph.  So the time b at which the dog reaches the
  106. boy is proportional to a.  A similar argument shows that the time the 
  107. dog next reaches the girl is b + b/13, and is hence proportional to b.
  108. This makes the position of the dog at time (t > a) a periodic function of
  109. the logarithm of a, and thus does not approach a limit as a -> 0.
  110.  
  111. ==> analysis/bugs.p <==
  112. Four bugs are placed at the corners of a square.  Each bug walks always
  113. directly toward the next bug in the clockwise direction.  How far do
  114. the bugs walk before they meet?
  115.  
  116. ==> analysis/bugs.s <==
  117. Since the bugs start out walking perpendicularly, and there is nothing
  118. in the problem to alter this symmetry, the bugs are always walking
  119. perpendicularly.  Since each bug is walking perpendicularly to the line
  120. separating it from the bug chasing it, the gap is closing at the speed
  121. of the chasing bug.  Therefore, each bug walks a distance equal to the
  122. side of the square before it meets the next bug.
  123.  
  124. In order to conveniently express the equation of the bugs' motion,
  125. use standard polar coordinates, and let the first bug's position at
  126. any instant be (r(t), theta(t)).  Assume the initial square is
  127. centered at the origin.
  128.  
  129. Then by symmetry the bugs are always at four corners of some square
  130. centered at the origin, and if they meet they meet at the origin.
  131. Also, each bug is always walking in a direction pi/4 (45 degrees) away
  132. from the radial line to the origin.  This means that in the limit as
  133. the time step goes to zero, the bug travels sec(pi/4) = sqrt(2) units
  134. along its path for every unit of progress made good toward the center.
  135. Since the corners are initially d/sqrt(2) distance from the center,
  136. each bug travels distance d before they meet, assuming they meet at
  137. all.
  138.  
  139. Since a bug's path always crosses radial lines at angle psi = pi/4,
  140. the path is a logarithmic spiral with angle psi = pi/4 and equation
  141.  
  142.   r(t) = e^(a*theta(t) + b)
  143.  
  144. Moreover since the bugs walk clockwise, both r(t) and theta(t)
  145. decrease as t increases, in other words r increases as theta
  146. increases, hence a is positive.  Also, psi = pi/4 gives us
  147.  
  148.   d(r)/d(theta) = r
  149.  
  150. (this is easiest to see by drawing the path for a small time step
  151. delta-t and taking the limit as delta-t goes to 0).  The solution is
  152.  
  153.   r(t) = e^(theta(t) + b)
  154.  
  155. (that is, a = 1).  As we know, this spiral makes infinitely many
  156. "wraps" around the origin as the radius approaches zero, but it does
  157. have finite length from any point inward and its limit point is the
  158. origin, where the bugs will meet (unless one wants to quibble about
  159. the behavior at the exact limit point).
  160.  
  161. How much closer is the bug to the origin after its first complete cycle
  162. around the origin?  Recall that r(0) = d/sqrt(2).  As the bug walks
  163. clockwise around the origin, after one full circuit its angle decreases
  164. from theta(0) to theta(t1), where t1 (the time at which full circuit
  165. occurs) is defined by
  166.  
  167.   theta(t1) = theta(0) - 2*pi
  168.  
  169. Hence
  170.  
  171.   r(0) = e^(theta(0) + b)
  172.   r(t1) = e^(theta(0) - 2*pi + b)
  173.  
  174.   r(t1)/r(0) = e^(-2*pi)
  175.  
  176. The quantity we want is
  177.  
  178.   r(0) - r(t1) = r(0)*(1 - e^(-2*pi))
  179.                = d * (1 - e^(-2*pi))/sqrt(2)
  180.  
  181. ==> analysis/c.infinity.p <==
  182. What function is zero at zero, strictly positive elsewhere, infinitely
  183. differentiable at zero and has all zero derivatives at zero?
  184.  
  185. ==> analysis/c.infinity.s <==
  186. exp(-1/x^2)
  187.  
  188. There are infinitely many other such functions.
  189.  
  190. This tells us why Taylor Series are a more limited device than they might be.
  191. We form a Taylor series by looking at the derivatives of a function at a given
  192. point; but this example shows us that the derivatives at a point may tell us
  193. almost nothing about its behavior away from that point.
  194.  
  195. ==> analysis/cache.p <==
  196. Cache and Ferry (How far can a truck go in a desert?)
  197. A pick-up truck is in the desert beside N 50-gallon gas drums, all full.
  198. The truck's gas tank holds 10 gallons and is empty.  The truck can carry
  199. one drum, whether full or empty, in its bed.  It gets 10 miles to the gallon.
  200. How far away from the starting point can you drive the truck?
  201.  
  202. ==> analysis/cache.s <==
  203. If the truck can siphon gas out of its tank and leave it in the cache,
  204. the answer is:
  205.         { 1/1 + 1/3 + ... + 1/(2 * N - 1) } x 500 miles.
  206.  
  207. A much harder problem occurs when the truck can siphon gas, but if it does,
  208. it must siphon the gas into one of the initial barrels.
  209.  
  210. Now, remarkably, for initial gas values of 50, 100, 150, 200, 250, 300,
  211. and 350 gallons, the two problems give identical optimal distances, viz.
  212.    gal   dist
  213.    ---   ----
  214.     50   500
  215.    100   733.3333
  216.    150   860
  217.    200   948.5714
  218.    250  1016.8254
  219.    300  1072.3810
  220.    350  1117.8355
  221.  
  222. However, for the 8 barrel case (400 gallons), the unlimited cache optimal
  223. distance is 1157.6957, but limited cache is only 1157.2294.
  224.  
  225. What happened is that the unlimited cache optimal solution has started to
  226. siphon out more than 50 gallons (60-80/13 to be exact) of gas on trips
  227. to the first depot.  With a limited cache, the truck can only leave a
  228. maximum of 50 gallons (one barrel worth), and does not have a big
  229. enough gas tank (only ten gallons) to carry around the excess.
  230.  
  231. The limited cache problem is the same as the "Desert Fox" problem
  232. described, but not solved, by Dewdney, July '87 "Scientific American".
  233.  
  234. Dewdney's Oct. '87 Sci. Am. article gives for N=2, the optimal distance
  235. of 733.33 miles.
  236.  
  237. In the Nov. issue, Dewdney lists the optimal distance of 860 miles for
  238. N=3, and gives a better, but not optimal, general distance formula.
  239.  
  240. Westbrook, in Vol 74, #467, pp 49-50, March '90 "Mathematical Gazette",
  241. gives an even better formula, for which he incorrectly claims optimality:
  242.  
  243.   For N = 2,3,4,5,6:
  244.      Dist = (600/1 + 600/3 + ... + 600/(2N-3))  +  (600-100N)/(2N-1)
  245.   For N > 6:
  246.      Dist = (600/1 + 600/3 + ... + 600/9)  +  (500/11 + ... + 500/(2N-3))
  247.  
  248. The following shows that Westbrook's formula is not optimal for N=8:
  249.  
  250.    Ferry  7 drums forward   33.3333 miles   (356.6667 gallons remain)
  251.    Ferry  6 drums forward   51.5151 miles   (300.0000 gallons remain)
  252.    Ferry  5 drums forward   66.6667 miles   (240.0000 gallons remain)
  253.    Ferry  4 drums forward   85.7143 miles   (180.0000 gallons remain)
  254.    Ferry  3 drums forward  120.0000 miles   (120.0000 gallons remain)
  255.    Ferry  2 drums forward  200.0000 miles   ( 60.0000 gallons remain)
  256.    Ferry  1 drums forward  600.0000 miles
  257.                           ---------------
  258.          Total distance = 1157.2294 miles
  259.    (Westbrook's formula = 1156.2970 miles)
  260.  
  261.        ["Ferrying n drums forward x miles" involves (2*n-1) trips,
  262.          each of distance x.]
  263.  
  264. Other attainable values I've found:
  265.    N      Distance
  266.   ---    ---------  (Ferry distances for each N are omitted for brevity.)
  267.     5    1016.8254
  268.     7    1117.8355
  269.    11    1249.2749
  270.    13    1296.8939
  271.    17    1372.8577
  272.    19    1404.1136  (The N <= 19 distances could be optimal.)
  273.    31    1541.1550  (I doubt that this N = 31 distance is optimal.)
  274.   139    1955.5702  (Attainable and probably optimal.)
  275.  
  276. So...where's MY formula?
  277. I haven't found one, and believe me, I've looked.
  278.  
  279. I would be most grateful if someone would end my misery by mailing me
  280. a formula, a literature reference, or even an efficient algorithm that
  281. computes the optimal distance.
  282.  
  283. If you do come up with the solution, you might want to first check it
  284. against the attainable distances listed above, before sending it out.
  285. (Not because you might be wrong, but just as a mere formality to check
  286.  your work.)
  287.  
  288. [Warning:  the Mathematician General has determined that
  289.            this problem is as addicting as Twinkies.]
  290.  
  291. Myron P. Souris
  292. EDS/Unigraphics
  293. souris@ug.eds.com
  294.  
  295. @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
  296.  
  297. The following output comes from some hack programs that I've used to
  298. empirically verify some proofs I've been working on.
  299.  
  300. Initial barrels:   12 (600 gallons)
  301. Attainable distance= 1274.175211
  302.                   Barrels  Distance      Gas
  303.                    Moved    covered     left
  304. >From depot   1:      10     63.1579   480.0000
  305. >From depot   2:       8     50.0000   405.0000
  306. >From depot   3:       7     37.5000   356.2500
  307. >From depot   4:       6     51.1364   300.0000
  308. >From depot   5:       5     66.6667   240.0000
  309. >From depot   6:       4     85.7143   180.0000
  310. >From depot   7:       3    120.0000   120.0000
  311. >From depot   8:       2    200.0000    60.0000
  312. >From depot   9:       1    600.0000     0.0000
  313.  
  314.  
  315. Initial barrels:   40 (2000 gallons)
  316. Attainable distance= 1611.591484
  317.                   Barrels  Distance      Gas
  318.                    Moved    covered     left
  319. >From depot   1:      40      2.5316  1980.0000
  320. >From depot   2:      33     50.0000  1655.0000
  321. >From depot   3:      28     50.0000  1380.0000
  322. >From depot   4:      23     53.3333  1140.0000
  323. >From depot   5:      19     50.0000   955.0000
  324. >From depot   6:      16     56.4516   780.0000
  325. >From depot   7:      13     50.0000   655.0000
  326. >From depot   8:      11     54.7619   540.0000
  327. >From depot   9:       9     50.0000   455.0000
  328. >From depot  10:       8     32.1429   406.7857
  329. >From depot  11:       7     38.9881   356.1012
  330. >From depot  12:       6     51.0011   300.0000
  331. >From depot  13:       5     66.6667   240.0000
  332. >From depot  14:       4     85.7143   180.0000
  333. >From depot  15:       3    120.0000   120.0000
  334. >From depot  16:       2    200.0000    60.0000
  335. >From depot  17:       1    600.0000     0.0000
  336.  
  337. ==> analysis/calculate.pi.p <==
  338. How can I calculate many digits of pi?
  339.  
  340. ==> analysis/calculate.pi.s <==
  341. long a=10000,
  342.     b,
  343.     c=2800,
  344.     d,e,
  345.     f[2801],
  346.     g;
  347.  
  348. main()
  349.    {
  350.     for (;b-c;) f[b++]=a/5;
  351.  
  352.     for (;
  353.     d=0,g=c*2;
  354.     c-=14, printf("%.4d",e+d/a), e=d%a)
  355.     
  356.     for (b=c;
  357.      d+=f[b]*a,f[b]=d%--g,d/=g--,--b;
  358.      d*=b);
  359.    }
  360.  
  361. ==> analysis/cats.and.rats.p <==
  362. If 6 cats can kill 6 rats in 6 minutes, how many cats does it take to
  363. kill one rat in one minute?
  364.  
  365. ==> analysis/cats.and.rats.s <==
  366. The following piece by Lewis Carroll first appeared in ``The Monthly
  367. Packet'' of February 1880 and is reprinted in _The_Magic_of_Lewis_Carroll_,
  368. edited by John Fisher, Bramhall House, 1973.
  369.  
  370. /Larry Denenberg
  371. larry@bbn.com
  372. larry@harvard.edu
  373.  
  374.  
  375.  
  376.  
  377.  
  378.                                  Cats and Rats
  379.  
  380.    If 6 cats kill 6 rats in 6 minutes, how many will be needed to kill 100
  381.    rats in 50 minutes?
  382.  
  383.    This is a good example of a phenomenon that often occurs in working
  384.    problems in double proportion; the answer looks all right at first, but,
  385.    when we come to test it, we find that, owing to peculiar circumstances in
  386.    the case, the solution is either impossible or else indefinite, and needing
  387.    further data.  The 'peculiar circumstance' here is that fractional cats or
  388.    rats are excluded from consideration, and in consequence of this the
  389.    solution is, as we shall see, indefinite.
  390.  
  391.    The solution, by the ordinary rules of Double Proportion, is as follows:
  392.        6 rats   :  100 rats  \
  393.                   >   :: 6 cats : ans.
  394.       50 min.   :    6 min.  /
  395.          .
  396.     . .  ans. = (100)(6)(6)/(50)(6) = 12
  397.  
  398.    But when we come to trace the history of this sanguinary scene through all
  399.    its horrid details, we find that at the end of 48 minutes 96 rats are dead,
  400.    and that there remain 4 live rats and 2 minutes to kill them in: the
  401.    question is, can this be done?
  402.  
  403.    Now there are at least *four* different ways in which the original feat,
  404.    of 6 cats killing 6 rats in 6 minutes, may be achieved.  For the sake of
  405.    clearness let us tabulate them:
  406.       A.  All 6 cats are needed to kill a rat; and this they do in one minute,
  407.           the other rats standing meekly by, waiting for their turn.
  408.       B.  3 cats are needed to kill a rat, and they do it in 2 minutes.
  409.       C.  2 cats are needed, and do it in 3 minutes.
  410.       D.  Each cat kills a rat all by itself, and take 6 minutes to do it.
  411.  
  412.    In cases A and B it is clear that the 12 cats (who are assumed to come
  413.    quite fresh from their 48 minutes of slaughter) can finish the affair in
  414.    the required time; but, in case C, it can only be done by supposing that 2
  415.    cats could kill two-thirds of a rat in 2 minutes; and in case D, by
  416.    supposing that a cat could kill one-third of a rat in two minutes.  Neither
  417.    supposition is warranted by the data; nor could the fractional rats (even
  418.    if endowed with equal vitality) be fairly assigned to the different cats.
  419.    For my part, if I were a cat in case D, and did not find my claws in good
  420.    working order, I should certainly prefer to have my one-third-rat cut off
  421.    from the tail end.
  422.  
  423.    In cases C and D, then, it is clear that we must provide extra cat-power.
  424.    In case C *less* than 2 extra cats would be of no use.  If 2 were supplied,
  425.    and if they began killing their 4 rats at the beginning of the time, they
  426.    would finish them in 12 minutes, and have 36 minutes to spare, during which
  427.    they might weep, like Alexander, because there were not 12 more rats to
  428.    kill.  In case D, one extra cat would suffice; it would kill its 4 rats in
  429.    24 minutes, and have 24 minutes to spare, during which it could have killed
  430.    another 4.  But in neither case could any use be made of the last 2
  431.    minutes, except to half-kill rats---a barbarity we need not take into
  432.    consideration.
  433.  
  434.    To sum up our results.  If the 6 cats kill the 6 rats by method A or B,
  435.    the answer is 12; if by method C, 14; if by method D, 13.
  436.  
  437.    This, then, is an instance of a solution made `indefinite' by the
  438.    circumstances of the case.  If an instance of the `impossible' be desired,
  439.    take the following: `If a cat can kill a rat in a minute, how many would be
  440.    needed to kill it in the thousandth part of a second?'  The *mathematical*
  441.    answer, of course, is `60,000,' and no doubt less than this would *not*
  442.    suffice; but would 60,000 suffice?  I doubt it very much.  I fancy that at
  443.    least 50,000 of the cats would never even see the rat, or have any idea of
  444.    what was going on.
  445.  
  446.    Or take this: `If a cat can kill a rat in a minute, how long would it be
  447.    killing 60,000 rats?'  Ah, how long, indeed!  My private opinion is that
  448.    the rats would kill the cat.
  449.  
  450.  
  451.  
  452. ==> analysis/dog.p <==
  453. A body of soldiers form a 50m-by-50m square ABCD on the parade ground.
  454. In a unit of time, they march forward 50m in formation to take up the
  455. position DCEF. The army's mascot, a small dog, is standing next to its
  456.                                        handler at location A. When the
  457.           B----C----E                  soldiers start marching, the dog
  458.           |    |    |   forward-->     begins to run around the moving
  459.           A----D----F                  body in a clockwise direction,
  460.                                        keeping as close to it as possible.
  461. When one unit of time has elapsed, the dog has made one complete
  462. circuit and has got back to its handler, who is now at location D. (We
  463. can assume the dog runs at a constant speed and does not delay when
  464. turning the corners.)
  465.  
  466. How far does the dog travel?
  467.  
  468. ==> analysis/dog.s <==
  469. Let L be the side of the square, 50m, and let D be the distance the
  470. dog travels.
  471.  
  472. Let v1 be the soldiers' marching speed and v2 be the speed of the dog.
  473. Then v1 = L / (1 time unit) and v2 = v1*D/L.
  474.  
  475. Let t1, t2, t3, t4 be the time the dog takes to traverse each side of
  476. the square, in order.  Find t1 through t4 in terms of L and D and solve
  477. t1+t2+t3+t4 = 1 time unit.
  478.  
  479. While the dog runs along the back edge of the square in time t1, the
  480. soldiers advance a distance d=t1*v1, so the dog has to cover a distance
  481. sqrt(L^2 + (t1*v1)^2), which takes a time t1=sqrt(L^2 + (t1*v1)^2)/v2.
  482. Solving for t1 gives t1=L/sqrt(v2^2 - v1^2).
  483.  
  484. The rest of the times are t2 = L/(v2-v1), t3 = t1, and t4 = L/(v2+v1).
  485.  
  486. In t1+t2+t3+t4, eliminate v2 by using v2=v1*D/L and eliminate v1 by
  487. using v1=L/(1 time unit), obtaining
  488.  
  489.         2 L (D + sqrt(D^2-L^2)) / (D^2 - L^2) = 1
  490.  
  491. which can be turned into
  492.  
  493.         D^4 - 4LD^3 - 2L^2D^2 + 4L^3D + 5L^4 = 0
  494.  
  495. which has a root D = 4.18113L = 209.056m.
  496.  
  497. ==> analysis/e.and.pi.p <==
  498. Without finding their numerical values, which is greater, e^(pi) or (pi)^e?
  499.  
  500. ==> analysis/e.and.pi.s <==
  501. e^(pi).  Put x = pi/e - 1 in the inequality e^x > 1+x  (x>0).
  502.  
  503. ==> analysis/functional/distributed.p <==
  504.      Find all f: R -> R, f not identically zero, such that
  505. (*)     f( (x+y)/(x-y) ) = ( f(x)+f(y) )/( f(x)-f(y) ).
  506.  
  507. ==> analysis/functional/distributed.s <==
  508. 1)  Assuming f finite everywhere, (*) ==> x<>y ==> f(x)<>f(y)
  509.  
  510. 2)  Exchanging x and y in (*) we see that f(-x) = -f(x).
  511.  
  512. 3)  a <> 0 ==> f((a-a)/(a+a)) = (f(a)-f(a))/(f(a)+f(a)) ==> f(0) = 0.
  513.  
  514. 4)  a <> 0 ==> f((a+0)/(a-0)) = f(a)/f(a) ==> f(1) = 1.
  515.  
  516. 5)  x<>y, y<>0 ==> f(x/y) =
  517. f( ((x+y)/(x-y) + (x-y)/(x-y)) / ((x+y)/(x-y) - (x-y)/(x-y)) = f(x)/f(y)
  518. ==> f(xy) = f(x)f(y) by replacing x with xy and by noting that
  519. f(x*1) = f(x)*1 and f(x*0) = f(x)*f(0).
  520.  
  521. 6)  f(x*x) = f(x)*f(x) ==> f(x) > 0 if x>0.
  522.  
  523. 7)  Let a=1+\/2, b=1-\/2; a,b satisfy (x+1)/(x-1) = x ==>
  524. f(x) = (f(x)+1)/(f(x)-1) ==> f(a)=a, f(b)=b.  f(1/\/2) = f((a+b)/(a-b))
  525. = (a+b)/(a-b) = 1/\/2 ==> f(2) = 2.
  526.  
  527. 8)  By induction and the relation f((n+1)/(n-1)) = (f(n)+1)/(f(n)-1)
  528. we get that f(n)=n for all integer n.  #5 now implies that f fixes
  529. the rationals.
  530.  
  531. 9)  If x>y>0 (*) ==> f(x) - f(y) = f(x+y)/f((x+y)/(x-y)) > 0 by #6.
  532. Thus f is order-preserving.
  533.  
  534. Since f fixes the rationals *and* f is order-preserving, f must be the
  535. identity function.
  536.  
  537. This was E2176 in _The American Mathematical Monthly_ (the proposer was
  538. R. S. Luthar).
  539.  
  540. ==> analysis/functional/linear.p <==
  541. Suppose f is non-decreasing with
  542.   f(x+y) = f(x) + f(y) + C   for all real x, y.
  543. Prove: there is a constant A such that f(x) = Ax - C  for all x.
  544. (Note: continuity of f is not assumed in advance.)
  545.  
  546. ==> analysis/functional/linear.s <==
  547. By induction f(mx) = m(f(x)+C)-C.  Let x=1/n, m=n and find that
  548. f(1/n) = (1/n)(f(1)+C)-C.  Now let x=1/n and find that f(m/n) =
  549. (m/n)(f(1)+C)-C.  f(-x+x) = f(-x) + f(x) + C ==> f(-x) = -2C - f(x)
  550. (since f(0) = -C) ==> f(-m/n) = -(m/n)(f(1)+C)-C.  Since f is
  551. monotonic ==> f(x) = x*(f(1)+C)-C for all real x (Squeeze Theorem).
  552.  
  553. ==> analysis/integral.p <==
  554. If f is integrable on (0,inf) and differentiable at 0, and a > 0, and:
  555.  
  556.       inf           f(x)
  557.    Int        ----------------  dx is defined
  558.        0             x
  559.  
  560. show:
  561.  
  562.       inf     ( f(x) - f(ax) )  
  563.    Int        ----------------  dx   = f(0) ln(a)
  564.        0             x
  565.  
  566. ==> analysis/integral.s <==
  567. First, note that if f(0) is 0, then by substituting u=ax in
  568. the integral of f(x)/x, our integral is the difference of two
  569. equal integrals and so is 0 (the integrals are finite because f is
  570. 0 at 0 and differentiable there.  Note I make no requirement of
  571. continuity).
  572.  
  573. Second, note that if f is the characteristic function of the
  574. interval [0, 1]--- i.e.
  575.  
  576.         1, 0<=x<=1
  577.     f (x) =
  578.         0 otherwise
  579.  
  580. then a little arithmetic reduces our integral to that of
  581. 1/x from 1/a to 1 (assuming a>1; if a <= 1 the reasoning is similar),
  582. which is ln(a) = f(0)ln(a) as required.  Call this function g.
  583.  
  584. Finally, note that the operator which takes the function f to the
  585. value of our integral is linear, and that every function meeting the
  586. hypotheses (incidentally, I should have said `differentiable from the right',
  587. or else replaced the characteristic function of [0,1] above by that of
  588. (-infinity, 1]; but it really doesn't matter) is a linear combination of
  589. one which is 0 at 0 and g, to wit
  590.  
  591.     f(x) = f(0)g(x) + (f(x) - g(x)f(0)).
  592.  
  593. ==> analysis/irrational.stamp.p <==
  594. You have an ink stamp which is so amazingly precise that, when inked
  595. and pressed down on the plane, it makes every circle of irrational
  596. radius (centered at the center of the stamp) black.
  597.  
  598. Question:  Can one use the stamp three times and make every point
  599. in the plane black?  [assume plane was white to begin with, and
  600. ignore the fact that no such stamp is physically possible]
  601.  
  602. ==> analysis/irrational.stamp.s <==
  603. Yes.  Center the stamp at (0,0), (1,0), and (0,pi).
  604.  
  605. Suppose there is a point (x,y) which is not covered.
  606. Then there are rational numbers a,b,c satisfying the following equations:
  607.  
  608.   (1)   x^2   +   y^2     =  a
  609.   (2) (x-1)^2 +   y^2     =  b
  610.   (3)   x^2   + (y-pi)^2  =  c
  611.  
  612. Subtract (2) from (1) and solve for x.  Thus x is rational.
  613. From equation (2), y is algebraic.  But equation (3) implies
  614. that y is transcendental, contradiction.
  615.  
  616. ==> analysis/minimum.time.p <==
  617. N people can walk or drive in a two-seater to go from city A to city B.  What
  618. is the minimum time required to do so?
  619.  
  620. ==> analysis/minimum.time.s <==
  621. Let the speed of the car be v, the speed of a walking person be u, and
  622. the distance between cities by L.  We want to minimize T, the time t
  623. at which all persons are at displacement x=L (city B), when they all
  624. start at displacement x=0 (city A) at time t=0.
  625.  
  626. I'll assume that the solution has everyone starting out from city A at
  627. the same time t=0 arriving in city B at the same time t=T so nobody is
  628. standing around idly waiting.  Let's plot everyone's movements on a
  629. graph showing coordinates (t,x).  Then at time t just after 0, (N-2)
  630. walkers are on the line L0 through (0,0) with slope dx/dt = u, and 2
  631. in the car are on a line through (0,0) with slope v, and at t just
  632. before T, (N-2) walkers are on the line L1 through (T,L) with slope u,
  633. and 2 in the car are on a line through (T,L) with slope v.  Obviously
  634. L1 lies "above" L0 (greater x coordinate given the same t coordinate).
  635. In between t=0 and t=T, the car zigzags between L0 and L1 along lines
  636. of slope v and -v, picking up people from L0 and dropping them off at
  637. L1.  I will not prove that this is the optimal strategy; in fact you
  638. can make an infinite number of variations on it which all come up with
  639. the same elapsed time.
  640.  
  641. Now examine the graph again.  Say the car travels distance r between
  642. picking someone up and dropping that person off, and distance s back
  643. to pick up the next person.  The car makes (N-1) trips forward and
  644. (N-2) trips back to pick up and ferry everyone, so its total travel is
  645.  
  646.     vT = (N - 1)r + (N - 2)s = (N - 2)(r + s) + r
  647.  
  648. Moreover the car makes (r-s) net displacement on each round trip, plus
  649. r displacement on the extra forward trip, so
  650.  
  651.     L = (N - 2)(r - s) + r
  652.  
  653. Note that a person walks distance (r-s) in the time it takes the car to
  654. go (r+s), so 
  655.  
  656.     r - s = (u/v)(r + s)
  657.  
  658. A little algebraic manipulation of this equation shows us that
  659.  
  660.     r - s = r * 2u/(v + u)
  661.     r + s = r * 2v/(v + u)
  662.  
  663. Plug this into the equation for L, and we get the first important
  664. piece of information, how far the car should drive before dropping off
  665. the passenger (once you know this, you tell it to the driver and this
  666. guarantees the people get to B in minimum time):
  667.  
  668.     L = r + (N - 2) r * 2u/(v + u)
  669.       = r * (v + u + (N - 2)*2u)/(v + u)
  670.  
  671.            v + u
  672.     r = ------------ L
  673.         2uN + v - 3u
  674.  
  675. We can also find out what the elapsed time T will be:
  676.  
  677.  
  678.     vT = (N - 2)r*2v/(v + u) + r
  679.        = r * ((N - 2)*2v + v + u)/(v + u)
  680.  
  681.         1   2vN - 3v + u
  682.     T = - * ------------ r
  683.         v      v + u
  684.  
  685. Therefore
  686.  
  687.         2vN - (3v - u)
  688.     T = -------------- (L/v)
  689.          2uN + v - 3u
  690.  
  691.  
  692. -- David Karr (karr@cs.cornell.edu)
  693.  
  694.  
  695. ==> analysis/particle.p <==
  696. What is the longest time that a particle can take in travelling between two
  697. points if it never increases its acceleration along the way and reaches the
  698. second point with speed V?
  699.  
  700. ==> analysis/particle.s <==
  701. Assumptions:
  702.  
  703. 1. x(0) = 0; x(T) = X
  704.  
  705. 2. v(0) = 0; v(T) = V
  706.  
  707. 3. d(a)/dt <= 0
  708.  
  709. Solution:
  710.  
  711. a(t) = constant = A = V^2/2X which implies T = 2X/V.
  712.  
  713. Proof:
  714.  
  715. Consider assumptions as they apply to f(t) = A * t - v(t):
  716.  
  717. 1. integral from 0 to T of f = 0
  718.  
  719. 2. f(0) = f(T) = 0
  720.  
  721. 3. d^2(f)/dt^2 <= 0
  722.  
  723. From the mean value theorem, f(t) = 0.  QED.
  724.  
  725. ==> analysis/period.p <==
  726. What is the least possible integral period of the sum of functions
  727. of periods 3 and 6?
  728.  
  729. ==> analysis/period.s <==
  730. Period 2.  Clearly, the sum of periodic functions of periods 2 and
  731. three is 6.  So take the function which is the sum of that function of
  732. period six and the negative of the function of period three and you
  733. have a function of period 2.
  734.  
  735. This proves that a period-2 solution exists, but not that it is minimal.
  736. Since we're talking about integers, the only lower possibility is 1.
  737. But the sum or difference of a period-1 and a period-3 function must have
  738. period 3, not 6, therefore 1 is indeed impossible.
  739.  
  740. ==> analysis/rubberband.p <==
  741. A bug walks down a rubber band which is attached to a wall at one end and a car
  742. moving away from the wall at the other end. The car is moving at 1 m/sec while
  743. the bug is only moving at 1 cm/sec. Assuming the rubber band is uniformly and
  744. infinitely elastic, will the bug ever reach the car?
  745.  
  746. ==> analysis/rubberband.s <==
  747. Let w = speed of bug and N = ratio of car speed/bug speed = 100.  Paint N+1
  748. equally spaced stripes on the rubberband.  When the bug is standing on one
  749. stripe, the next stripe is moving away from him at a speed slightly < w
  750. (relative to him).  Since he is walking at w, clearly the bug can reach
  751. the next stripe.  But once he reaches that stripe, the next one is only
  752. receeding at < w.  So he walks on down to the car, one stripe at a time.
  753.  
  754. The bug starts gaining on the car when he is at the next to last stripe.
  755.  
  756. ==> analysis/sequence.p <==
  757. Show that in the sequence: x, 2x, 3x, .... (n-1)x (x can be any real number)
  758. there is at least one number which is within 1/n of an integer.
  759.  
  760. ==> analysis/sequence.s <==
  761. Throw 0 into the sequence; there are now n numbers, so some pair must
  762. have fractional parts within 1/n of each other; their difference is
  763. then within 1/n of an integer.
  764.  
  765. ==> analysis/snow.p <==
  766. Snow starts falling before noon on a cold December day.  At noon a
  767. snow plow starts plowing a street.  It travels 1 mile in the first hour,
  768. and 1/2 mile in the second hour.  What time did the snow start
  769. falling??
  770.  
  771. You may assume that the plow's rate of travel is inversely proportional
  772. to the height of the snow, and that the snow falls at a uniform rate.
  773.  
  774. ==> analysis/snow.s <==
  775. 11:22:55.077 am.
  776.  
  777. Method:
  778.  
  779. Let b = the depth of the snow at noon, a = the rate of increase in the
  780. depth.  Then the depth at time t (where noon is t=0) is at+b, the
  781. snowfall started at t_0=-b/a, and the snowplow's rate of progress is 
  782. ds/dt = k/(at+b).
  783.  
  784. If the snowplow starts at s=0 then s(t) = (k/a) log(1+at/b).  Note that
  785. s(2 hours) = 1.5 s(1 hour), or  log(1+2A/b) = 1.5 log(1+A/b), where
  786. A = (1 hour)*a.  Letting x = A/b we have (1+2x)^2 = (1+x)^3.  Solve for
  787. x and t_0 = -(1 hour)/x.
  788.  
  789. The exact answer is 11:(90-30 Sqrt[5]).
  790.  
  791. _American Mathematics Monthly_, April 1937, page 245
  792. E 275.  Proposed by J. A. Benner, Lafayette College, Easton. Pa.
  793.  
  794. The solution appears, appropriately, in the December 1937 issue,
  795. pp. 666-667.  Also solved by William Douglas, C. E. Springer,
  796. E. P. Starke, W. J.  Taylor, and the proposer.
  797.  
  798. See R.P. Agnew, "Differential Equations," 2nd edition, p. 39 ff.
  799.  
  800. ==> analysis/tower.p <==
  801. R = N ^ (N ^ (N ^ ...)).  What is the maximum N>0 that will yield a finite R?
  802.  
  803. ==> analysis/tower.s <==
  804. ANSWER: e^(1/e)
  805.  
  806. Let N be the number in question and R the result of the process. Then
  807. R can be defined recursively by the equation:
  808.     (1) R = N^R
  809. Taking the logarithm of both sides of (1):
  810.     (2) ln(R) = R * ln(N)
  811. Dividing (2) by R and rearranging:
  812.     (3) ln(N) = ln(R) / R
  813. Exponentiating (3):
  814.     (4) N = R^(1/R)
  815. We wish to find the maximum value of N with respect to R. Find the
  816. derivative of N with respect to R and set it equal to zero:
  817.     (5) d(N)/d(R) = (1 - ln(R)) / R^2 = 0
  818. For finite values of R, (5) is satisfied by R = e. This is a maximum of
  819. N if the second derivative of N at R = e is less than zero.
  820.     (6) d2(N)/d2(R) | R=e = (2 * ln(R) - 3) / R^3 | R=e = -1 / e^3 < 0
  821. The solution therefore is (4) at R = e:
  822.     (7) Nmax = e^(1/e)
  823.  
  824.