home *** CD-ROM | disk | FTP | other *** search
/ ftp.pasteur.org/FAQ/ / ftp-pasteur-org-FAQ.zip / FAQ / puzzles / archive / logic / part2 < prev    next >
Encoding:
Internet Message Format  |  1996-04-26  |  21.4 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 OAA02178; Sat, 20 Apr 1996 14:39:24 -0400
  2. Received: from [199.164.164.1] by MIT.EDU with SMTP
  3.     id AA07881; Sat, 20 Apr 96 14:12:15 EDT
  4. Received: by questrel.questrel.com (940816.SGI.8.6.9/940406.SGI)
  5.     for news-answers-request@mit.edu id LAA25243; Sat, 20 Apr 1996 11:13:05 -0700
  6. Newsgroups: rec.puzzles,news.answers,rec.answers
  7. Path: senator-bedfellow.mit.edu!bloom-beacon.mit.edu!spool.mu.edu!sdd.hp.com!swrinde!cs.utexas.edu!uunet!questrel!chris
  8. From: chris@questrel.questrel.com (Chris Cole)
  9. Subject: rec.puzzles Archive (logic), part 23 of 35
  10. Message-Id: <puzzles/archive/logic/part2_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:06:12 GMT
  22. Approved: news-answers-request@MIT.Edu
  23. Expires: Thu, 1 Sep 1994 06:04:11 GMT
  24. Lines: 929
  25. Xref: senator-bedfellow.mit.edu rec.puzzles:25018 news.answers:11538 rec.answers:1938
  26. Apparently-To: news-answers-request@mit.edu
  27.  
  28. Archive-name: puzzles/archive/logic/part2
  29. Last-modified: 17 Aug 1993
  30. Version: 4
  31.  
  32.  
  33. ==> logic/riddle.p <==
  34. Who makes it, has no need of it.  Who buys it, has no use for it.  Who
  35. uses it can neither see nor feel it.
  36.  
  37.  
  38. Tell me what a dozen rubber trees with thirty boughs on each might be?
  39.  
  40.  
  41. As I went over London Bridge
  42. I met my sister Jenny
  43. I broke her neck and drank her blood
  44. And left her standing empty
  45.  
  46.  
  47. It is said among my people that some things are improved by death.
  48. Tell me, what stinks while living, but in death, smells good?
  49.  
  50.  
  51. All right.  Riddle me this:  what goes through the door without
  52. pinching itself?  What sits on the stove without burning itself?  What
  53. sits on the table and is not ashamed?
  54.  
  55.  
  56. What work is it that the faster you work, the longer it is before
  57. you're done, and the slower you work, the sooner you're finished?
  58.  
  59.  
  60. Whilst I was engaged in sitting I spied the dead carrying the living.
  61.  
  62.  
  63. I know a word of letters three.  Add two, and fewer there will be.
  64.  
  65.  
  66. I give you a group of three.  One is sitting down, and will never get
  67. up.  The second eats as much as is given to him, yet is always hungry.
  68. The third goes away and never returns.
  69.  
  70.  
  71. Whoever makes it, tells it not.  Whoever takes it, knows it not.  And
  72. whoever knows it wants it not.
  73.  
  74.  
  75. Two words, my answer is only two words.
  76. To keep me, you must give me.
  77.  
  78.  
  79. Sir, I bear a rhyme excelling
  80. In mystic force and magic spelling
  81. Celestial sprites elucidate
  82. All my own striving can't relate
  83.  
  84.  
  85. There is not wind enough to twirl
  86. That one red leaf, nearest of its clan,
  87. Which dances as often as dance it can.
  88.  
  89.  
  90. Half-way up the hill, I see thee at last
  91. Lying beneath me with thy sounds and sights --
  92. A city in the twilight, dim and vast,
  93. With smoking roofs, soft bells, and gleaming lights.
  94.  
  95.  
  96. I am, in truth, a yellow fork
  97. From tables in the sky
  98. By inadvertent fingers dropped
  99. The awful cutlery.
  100. Of mansions never quite disclosed
  101. And never quite concealed
  102. The apparatus of the dark
  103. To ignorance revealed.
  104.  
  105.  
  106. Many-maned scud-thumper,
  107. Maker of worn wood,
  108. Shrub-ruster,
  109. Sky-mocker,
  110. Rave!
  111.  
  112.  
  113. Make me thy lyre, even as the forests are.
  114. What if my leaves fell like its own --
  115. The tumult of thy mighty harmonies
  116. Will take from both a deep autumnal tone.
  117.  
  118.  
  119. This darksome burn, horseback brown,
  120. His rollock highroad roaring down,
  121. In coop and in comb the fleece of his foam
  122. Flutes and low to the body falls home.
  123.  
  124.  
  125. I've measured it from side to side,
  126. 'Tis three feet long and two feet wide.
  127. It is of compass small, and bare
  128. To thirsty suns and parching air.
  129.  
  130.  
  131. My love, when I gaze on thy beautiful face,
  132. Careering along, yet always in place --
  133. The thought has often come into my mind
  134. If I ever shall see thy glorious behind.
  135.  
  136.  
  137. Then all thy feculent majesty recalls
  138. The nauseous mustiness of forsaken bowers,
  139. The leprous nudity of deserted halls --
  140. The positive nastiness of sullied flowers.
  141. And I mark the colours, yellow and black,
  142. That fresco thy lithe, dictatorial thighs.
  143.  
  144.  
  145. When young, I am sweet in the sun.
  146. When middle-aged, I make you gay.
  147. When old, I am valued more than ever.
  148.  
  149.  
  150. I am always hungry,
  151. I must always be fed,
  152. The finger I lick
  153. Will soon turn red.
  154.  
  155.  
  156. All about, but cannot be seen,
  157. Can be captured, cannot be held,
  158. No throat, but can be heard.
  159.  
  160.  
  161. I am only useful
  162. When I am full,
  163. Yet I am always
  164. Full of holes.
  165.  
  166.  
  167. If you break me
  168. I do not stop working,
  169. If you touch me
  170. I may be snared,
  171. If you lose me
  172. Nothing will matter.
  173.  
  174.  
  175. If a man carried my burden
  176. He would break his back.
  177. I am not rich,
  178. But leave silver in my track.
  179.  
  180.  
  181. Until I am measured
  182. I am not known,
  183. Yet how you miss me
  184. When I have flown.
  185.  
  186.  
  187. I drive men mad
  188. For love of me,
  189. Easily beaten,
  190. Never free.
  191.  
  192.  
  193. When set loose
  194. I fly away,
  195. Never so cursed
  196. As when I go astray.
  197.  
  198.  
  199. I go around in circles
  200. But always straight ahead,
  201. Never complain
  202. No matter where I am led.
  203.  
  204.  
  205. Lighter than what
  206. I am made of,
  207. More of me is hidden
  208. Than is seen.
  209.  
  210.  
  211. I turn around once,
  212. What is out will not get in.
  213. I turn around again,
  214. What is in will not get out.
  215.  
  216.  
  217. Each morning I appear
  218. To lie at your feet,
  219. All day I will follow
  220. No matter how fast you run,
  221. Yet I nearly perish
  222. In the midday sun.
  223.  
  224.  
  225. Weight in my belly,
  226. Trees on my back,
  227. Nails in my ribs,
  228. Feet I do lack.
  229.  
  230.  
  231. Bright as diamonds,
  232. Loud as thunder,
  233. Never still,
  234. A thing of wonder.
  235.  
  236.  
  237. My life can be measured in hours,
  238. I serve by being devoured.
  239. Thin, I am quick
  240. Fat, I am slow
  241. Wind is my foe.
  242.  
  243.  
  244. To unravel me
  245. You need a simple key,
  246. No key that was made
  247. By locksmith's hand,
  248. But a key that only I
  249. Will understand.
  250.  
  251.  
  252. I am seen in the water
  253. If seen in the sky,
  254. I am in the rainbow,
  255. A jay's feather,
  256. And lapis lazuli.
  257.  
  258.  
  259. Glittering points
  260. That downward thrust,
  261. Sparkling spears
  262. That never rust.
  263.  
  264.  
  265. You heard me before,
  266. Yet you hear me again,
  267. Then I die,
  268. 'Till you call me again.
  269.  
  270.  
  271. Three lives have I.
  272. Gentle enough to soothe the skin,
  273. Light enough to caress the sky,
  274. Hard enough to crack rocks.
  275.  
  276.  
  277. You can see nothing else
  278. When you look in my face,
  279. I will look you in the eye
  280. And I will never lie.
  281.  
  282.  
  283. Lovely and round,
  284. I shine with pale light,
  285. grown in the darkness,
  286. A lady's delight.
  287.  
  288.  
  289. At the sound of me, men may dream
  290. Or stamp their feet
  291. At the sound of me, women may laugh
  292. Or sometimes weep
  293.  
  294.  
  295. When I am filled
  296. I can point the way,
  297. When I am empty
  298. Nothing moves me,
  299. I have two skins
  300. One without and one within.
  301.  
  302.  
  303. My tines be long,
  304. My tines be short
  305. My tines end ere
  306. My first report.
  307. What am I?
  308.  
  309.  
  310. With thieves I consort,
  311. With the vilest, in short,
  312.   I'm quite at ease in depravity;
  313. Yet all divines use me,
  314. And savants can't lose me,
  315.   For I am the center of gravity.
  316.  
  317.  
  318. As a whole, I am both safe and secure.
  319. Behead me, and I become a place of meeting.
  320. Behead me again, and I am the partner of ready.
  321. Restore me, and I become the domain of beasts.
  322. What am I?
  323.  
  324.  
  325. I sought my first in starry skies
  326.   Where shines the April sun;
  327. My second came before my eyes,
  328.   And warned me to be done.
  329.  
  330. 'Tis very hard to lose one's sight;
  331.   I'm blind as bat or mole;
  332. Once hills and fields were my delight,
  333.   Now I'm no more my whole.
  334.  
  335.  
  336. My first is high,
  337.   My second damp,
  338. My whole a tie,
  339.   A writer's cramp.
  340.  
  341.  
  342. A hundred and one
  343.   by fifty divide,
  344. And if a cipher
  345.   is rightly applied,
  346. The answer is one from nine.
  347.  
  348.  
  349. What does man love more than life
  350. Fear more than death or mortal strife
  351. What the poor have, the rich require,
  352. and what contented men desire,
  353. What the miser spends and the spendthrift saves 
  354. And all men carry to their graves?
  355.  
  356.  
  357. I build up castles.
  358. I tear down mountains.
  359. I make some men blind,
  360. I help others to see.
  361.     What am I?
  362.  
  363.  
  364. Ripped from my mother's womb,
  365. Beaten and burned,
  366. I become a blood-thirsty slayer
  367.     What am I?
  368.  
  369.  
  370. Five hundred begins it, five hundred ends it,
  371. Five in the middle is seen;
  372. First of all figures, the first of all letters,
  373. Take up their stations between.
  374. Join all together, and then you will bring
  375. Before you the name of an eminent king.
  376.  
  377. ==> logic/riddle.s <==
  378. Who makes it, has no need of it.  Who buys it, has no use for it.  Who
  379. uses it can neither see nor feel it.
  380.  
  381. coffin
  382.  
  383. Tell me what a dozen rubber trees with thirty boughs on each might be?
  384.  
  385. months of the year
  386.  
  387. As I went over London Bridge
  388. I met my sister Jenny
  389. I broke her neck and drank her blood
  390. And left her standing empty
  391.  
  392. gin
  393.  
  394. It is said among my people that some things are improved by death.
  395. Tell me, what stinks while living, but in death, smells good?
  396.  
  397. pig
  398.  
  399. All right.  Riddle me this:  what goes through the door without
  400. pinching itself?  What sits on the stove without burning itself?  What
  401. sits on the table and is not ashamed?
  402.  
  403. the sun
  404.  
  405. What work is it that the faster you work, the longer it is before
  406. you're done, and the slower you work, the sooner you're finished?
  407.  
  408. roasting meat on a spit
  409.  
  410. Whilst I was engaged in sitting I spied the dead carrying the living.
  411.  
  412. a ship
  413.  
  414. I know a word of letters three.  Add two, and fewer there will be.
  415.  
  416. 'few'
  417.  
  418. I give you a group of three.  One is sitting down, and will never get
  419. up.  The second eats as much as is given to him, yet is always hungry.
  420. The third goes away and never returns.
  421.  
  422. stove, fire, and smoke
  423.  
  424. Whoever makes it, tells it not.  Whoever takes it, knows it not.  And
  425. whoever knows it wants it not.
  426.  
  427. counterfeit money
  428.  
  429. Two words, my answer is only two words.
  430. To keep me, you must give me.
  431.  
  432. your word
  433.  
  434. Sir, I bear a rhyme excelling
  435. In mystic force and magic spelling
  436. Celestial sprites elucidate
  437. All my own striving can't relate
  438.  
  439. Pi (digits given by length of words)
  440.  
  441. There is not wind enough to twirl
  442. That one red leaf, nearest of its clan,
  443. Which dances as often as dance it can.
  444.  
  445. the sun, Samuel Taylor Coleridge
  446.  
  447. Half-way up the hill, I see thee at last
  448. Lying beneath me with thy sounds and sights --
  449. A city in the twilight, dim and vast,
  450. With smoking roofs, soft bells, and gleaming lights.
  451.  
  452. the past, Longfellow
  453.  
  454. I am, in truth, a yellow fork
  455. From tables in the sky
  456. By inadvertent fingers dropped
  457. The awful cutlery.
  458. Of mansions never quite disclosed
  459. And never quite concealed
  460. The apparatus of the dark
  461. To ignorance revealed.
  462.  
  463. lightning, Emily Dickinson
  464.  
  465. Many-maned scud-thumper,
  466. Maker of worn wood,
  467. Shrub-ruster,
  468. Sky-mocker,
  469. Rave!
  470. Portly pusher,
  471. Wind-slave.
  472.  
  473. the ocean, John Updike
  474.  
  475. Make me thy lyre, even as the forests are.
  476. What if my leaves fell like its own --
  477. The tumult of thy mighty harmonies
  478. Will take from both a deep autumnal tone.
  479.  
  480. the west wind, Percy Bysshe Shelley
  481.  
  482. This darksome burn, horseback brown,
  483. His rollock highroad roaring down,
  484. In coop and in comb the fleece of his foam
  485. Flutes and low to the body falls home.
  486.  
  487. river, Gerard Manley Hopkins
  488.  
  489. I've measured it from side to side,
  490. 'Tis three feet long and two feet wide.
  491. It is of compass small, and bare
  492. To thirsty suns and parching air.
  493.  
  494. the grave of a child, Wordsworth
  495.  
  496. My love, when I gaze on thy beautiful face,
  497. Careering along, yet always in place --
  498. The thought has often come into my mind
  499. If I ever shall see thy glorious behind.
  500.  
  501. the moon, Sir Edmund Gosse
  502.  
  503. Then all thy feculent majesty recalls
  504. The nauseous mustiness of forsaken bowers,
  505. The leprous nudity of deserted halls --
  506. The positive nastiness of sullied flowers.
  507. And I mark the colours, yellow and black,
  508. That fresco thy lithe, dictatorial thighs.
  509.  
  510. spider, Francis Saltus Saltus
  511.  
  512. When young, I am sweet in the sun.
  513. When middle-aged, I make you gay.
  514. When old, I am valued more than ever.
  515.  
  516. wine
  517.  
  518. I am always hungry,
  519. I must always be fed,
  520. The finger I lick
  521. Will soon turn red.
  522.  
  523. fire
  524.  
  525. All about, but cannot be seen,
  526. Can be captured, cannot be held,
  527. No throat, but can be heard.
  528.  
  529. wind
  530.  
  531. I am only useful
  532. When I am full,
  533. Yet I am always
  534. Full of holes.
  535.  
  536. sieve (or sponge)
  537.  
  538. If you break me
  539. I do not stop working,
  540. If you touch me
  541. I may be snared,
  542. If you lose me
  543. Nothing will matter.
  544.  
  545. heart
  546.  
  547. If a man carried my burden
  548. He would break his back.
  549. I am not rich,
  550. But leave silver in my track.
  551.  
  552. snail
  553.  
  554. Until I am measured
  555. I am not known,
  556. Yet how you miss me
  557. When I have flown.
  558.  
  559. time
  560.  
  561. I drive men mad
  562. For love of me,
  563. Easily beaten,
  564. Never free.
  565.  
  566. gold
  567.  
  568. When set loose
  569. I fly away,
  570. Never so cursed
  571. As when I go astray.
  572.  
  573. a fart
  574.  
  575. I go around in circles
  576. But always straight ahead,
  577. Never complain
  578. No matter where I am led.
  579.  
  580. wagon wheel
  581.  
  582. Lighter than what
  583. I am made of,
  584. More of me is hidden
  585. Than is seen.
  586.  
  587. iceberg
  588.  
  589. I turn around once,
  590. What is out will not get in.
  591. I turn around again,
  592. What is in will not get out.
  593.  
  594. stopcock
  595.  
  596. Each morning I appear
  597. To lie at your feet,
  598. All day I will follow
  599. No matter how fast you run,
  600. Yet I nearly perish
  601. In the midday sun.
  602.  
  603. shadow
  604.  
  605. Weight in my belly,
  606. Trees on my back,
  607. Nails in my ribs,
  608. Feet I do lack.
  609.  
  610. ship
  611.  
  612. Bright as diamonds,
  613. Loud as thunder,
  614. Never still,
  615. A thing of wonder.
  616.  
  617. waterfall? (fireworks?)
  618.  
  619. My life can be measured in hours,
  620. I serve by being devoured.
  621. Thin, I am quick
  622. Fat, I am slow
  623. Wind is my foe.
  624.  
  625. candle
  626.  
  627. To unravel me
  628. You need a simple key,
  629. No key that was made
  630. By locksmith's hand,
  631. But a key that only I
  632. Will understand.
  633.  
  634. cipher
  635.  
  636. I am seen in the water
  637. If seen in the sky,
  638. I am in the rainbow,
  639. A jay's feather,
  640. And lapis lazuli.
  641.  
  642. blue
  643.  
  644. Glittering points
  645. That downward thrust,
  646. Sparkling spears
  647. That never rust.
  648.  
  649. icicle
  650.  
  651. You heard me before,
  652. Yet you hear me again,
  653. Then I die,
  654. 'Till you call me again.
  655.  
  656. echo
  657.  
  658. Three lives have I.
  659. Gentle enough to soothe the skin,
  660. Light enough to caress the sky,
  661. Hard enough to crack rocks.
  662.  
  663. water
  664.  
  665. You can see nothing else
  666. When you look in my face,
  667. I will look you in the eye
  668. And I will never lie.
  669.  
  670. your reflection
  671.  
  672. Lovely and round,
  673. I shine with pale light,
  674. grown in the darkness,
  675. A lady's delight.
  676.  
  677. pearl
  678.  
  679. At the sound of me, men may dream
  680. Or stamp their feet
  681. At the sound of me, women may laugh
  682. Or sometimes weep
  683.  
  684. music
  685.  
  686. When I am filled
  687. I can point the way,
  688. When I am empty
  689. Nothing moves me,
  690. I have two skins
  691. One without and one within.
  692.  
  693. glove
  694.  
  695. My tines be long,
  696. My tines be short
  697. My tines end ere
  698. My first report.
  699. What am I?
  700.  
  701. lightning
  702.  
  703. With thieves I consort,
  704. With the vilest, in short,
  705.   I'm quite at ease in depravity;
  706. Yet all divines use me,
  707. And savants can't lose me,
  708.   For I am the center of gravity.
  709.  
  710. The letter 'v'.
  711.  
  712. As a whole, I am both safe and secure.
  713. Behead me, and I become a place of meeting.
  714. Behead me again, and I am the partner of ready.
  715. Restore me, and I become the domain of beasts.
  716. What am I?
  717.  
  718. stable
  719.  
  720. I sought my first in starry skies
  721.   Where shines the April sun;
  722. My second came before my eyes,
  723.   And warned me to be done.
  724.  
  725. 'Tis very hard to lose one's sight;
  726.   I'm blind as bat or mole;
  727. Once hills and fields were my delight,
  728.   Now I'm no more my whole.
  729.  
  730. ?
  731.  
  732. My first is high,
  733.   My second damp,
  734. My whole a tie,
  735.   A writer's cramp.
  736.  
  737. ?
  738.  
  739. A hundred and one
  740.   by fifty divide,
  741. And if a cipher
  742.   is rightly applied,
  743. The answer is one from nine.
  744.  
  745. ?
  746.  
  747. What does man love more than life
  748. Fear more than death or mortal strife
  749. What the poor have, the rich require,
  750. and what contented men desire,
  751. What the miser spends and the spendthrift saves 
  752. And all men carry to their graves?
  753.  
  754. nothing
  755.  
  756. I build up castles.
  757. I tear down mountains.
  758. I make some men blind,
  759. I help others to see.
  760.     What am I?
  761.  
  762. sand
  763.  
  764. Ripped from my mother's womb,
  765. Beaten and burned,
  766. I become a blood-thirsty slayer
  767.     What am I?
  768.  
  769. ?
  770.  
  771. Five hundred begins it, five hundred ends it,
  772. Five in the middle is seen;
  773. First of all figures, the first of all letters,
  774. Take up their stations between.
  775. Join all together, and then you will bring
  776. Before you the name of an eminent king.
  777.  
  778. DAVID (Roman numerals)
  779.  
  780. ==> logic/river.crossing.p <==
  781. Three humans, one big monkey and two small monkeys are to cross a river:
  782.      a) Only humans and the big monkey can row the boat.
  783.      b) At all times, the number of human on either side of the
  784.         river must be GREATER OR EQUAL to the number of monkeys
  785.         on THAT side. ( Or else the humans will be eaten by the monkeys!)
  786.  
  787. ==> logic/river.crossing.s <==
  788. The three columns represent the left bank, the boat, and the right bank
  789. respectively. The < or > indicates the direction of motion of the boat.
  790.  
  791. HHHMmm    .    .
  792. HHHm    Mm>    .
  793. HHHm    <M    m
  794. HHH    Mm>    m
  795. HHH    <M    mm
  796. HM    HH>    mm
  797. HM    <Hm    Hm
  798. Hm    HM>    Hm
  799. Hm    <Hm    HM
  800. mm    HH>    HM
  801. mm    <M    HHH
  802. m    Mm>    HHH
  803. m    <M    HHHm
  804. .    Mm>    HHHm
  805. .    .    HHHMmm
  806.  
  807. ==> logic/ropes.p <==
  808. Two fifty foot ropes are suspended from a forty foot ceiling, about
  809. twenty feet apart.  Armed with only a knife, how much of the rope can
  810. you steal?
  811.  
  812. ==> logic/ropes.s <==
  813. Almost all of it.  Tie the ropes together.  Climb up one of them.  Tie
  814. a loop in it as close as possible to the ceiling.  Cut it below the
  815. loop.  Run the rope through the loop and tie it to your waist.  Climb
  816. the other rope (this may involve some swinging action).  Pull the rope
  817. going through the loop tight and cut the other rope as close as
  818. possible to the ceiling.  You will swing down on the rope through the
  819. loop.  Lower yourself to the ground by letting out rope.  Pull the
  820. rope through the loop.  You will have nearly all the rope.
  821.  
  822. ==> logic/same.street.p <==
  823. Sally and Sue have a strong desire to date Sam.  They all live on the
  824. same street yet neither Sally or Sue know where Sam lives.  The houses
  825. on this street are numbered 1 to 99.
  826.  
  827. Sally asks Sam "Is your house number a perfect square?".  He answers.
  828. Then Sally asks "Is is greater than 50?".  He answers again.
  829.  
  830. Sally thinks she now knows the address of Sam's house and decides to
  831. visit.
  832.  
  833. When she gets there, she finds out she is wrong.  This is not
  834. surprising, considering Sam answered only the second question
  835. truthfully.
  836.  
  837. Sue, unaware of Sally's conversation, asks Sam two questions.
  838. Sue asks "Is your house number a perfect cube?".  He answers.
  839. She then asks "Is it greater than 25?".  He answers again.
  840.  
  841. Sue thinks she knows where Sam lives and decides to pay him a visit.
  842. She too is mistaken as Sam once again answered only the second 
  843. question truthfully.
  844.  
  845. If I tell you that Sam's number is less than Sue's or Sally's,
  846. and that the sum of their numbers is a perfect square multiplied
  847. by two, you should be able to figure out where all three of them
  848. live.
  849.  
  850. ==> logic/same.street.s <==
  851. Sally asks Sam "Is your house number a perfect square?".  He answers.
  852. Then Sally asks "Is is greater than 50?".  He answers again.
  853.  
  854. Sally thinks she now knows the address of Sam's house and decides to
  855. visit.
  856.  
  857.     Since Sally thinks that she has enough information, I deduce
  858.     that Sam answered that his house number was a perfect square
  859.     greater than 50.  There are two of these {64,81} and Sally must
  860.     live in one of them in order to have decided she knew where Sam
  861.     lives.
  862.  
  863. When she gets there, she finds out she is wrong.  This is not
  864. surprising, considering Sam answered only the second question
  865. truthfully.
  866.  
  867.     So Sam's house number is greater than 50, but not a perfect
  868.     square.
  869.  
  870. Sue, unaware of Sally's conversation, asks Sam two questions.
  871. Sue asks "Is your house number a perfect cube?".  He answers.
  872. She then asks "Is it greater than 25?".  He answers again.
  873.  
  874.     Observation: perfect cubes greater than 25 are {27, 64}, less
  875.     than 25 are {1,8}.
  876.  
  877. Sue thinks she knows where Sam lives and decides to pay him a visit.
  878. She too is mistaken as Sam once again answered only the second 
  879. question truthfully.
  880.  
  881.     Since Sam's house number is greater than 50, he told Sue that
  882.     it was greater than 25 as well.  Since Sue thought she knew
  883.     which house was his, she must live in either of {27,64}.
  884.  
  885. If I tell you that Sam's number is less than Sue's or Sally's,
  886.  
  887.     Since Sam's number is greater than 50, and Sue's is even
  888.     bigger, she must live in 64.  Assuming Sue and Sally are not
  889.     roommates (although awkward social situations of this kind are
  890.     not without precedent), Sally lives in 81.
  891.  
  892. and that the sum of their numbers is a perfect square multiplied
  893. by two, you should be able to figure out where all three of them
  894. live.
  895.  
  896.     Sue + Sally + Sam = 2 p^2        for p an integer
  897.     64  + 81    + Sam = 2 p^2
  898.  
  899.     Applying the constraint 50 < Sam < 64, looks like Sam = 55 (p = 10).
  900.  
  901.     In summary,
  902.         Sam = 55
  903.         Sue = 64
  904.         Sally = 81
  905.  
  906.     -- Tom Smith <tom@ulysses.att.com>
  907.  
  908. ==> logic/self.ref.p <==
  909. Find a number ABCDEFGHIJ such that A is the count of how many 0's are in the
  910. number, B is the number of 1's, and so on.
  911.  
  912. ==> logic/self.ref.s <==
  913. 6210001000
  914.  
  915. For other numbers of digits:
  916.  
  917. n=1:    no sequence possible
  918. n=2:    no sequence possible
  919. n=3:    no sequence possible
  920. n=4:    1210, 2020
  921. n=5:    21200
  922. n=6:    no sequence possible
  923. n=7:    3211000
  924. n=8:    42101000
  925. n=9:    521001000
  926. n=10:    6210001000
  927. n>10:    (n-4), 2, 1, 0 * (n-7), 1, 0, 0, 0
  928.  
  929. No 1, 2, or 3 digit numbers are possible.  Letting x_i be the ith
  930. digit, starting with 0, we see that (1) x_0 + ... + x_n = n+1 and
  931. (2) 0*x_0 + ... + n*x_n = n+1, where n+1 is the number of digits.
  932.  
  933. I'll first prove that x_0 > n-3 if n>4.  Assume not, then this
  934. implies that at least four of the x_i with i>0 are non-zero.  But
  935. then we would have \sum_i i*x_i >= 10 by (2), impossible unless n=9,
  936. but it isn't possible in this case (51111100000 isn't valid).
  937.  
  938. Now I'll prove that x_0 < n-1.  x_0 clearly can't equal n; assume
  939. x_0 = n-1 ==> x_{n-1} = 1 by (2) if n>3.  Now only one of the
  940. remaining x_i may be non-zero, and we must have that x_0 + ... + x_n
  941. = n+1, but since x_0 + x_{n-1} = n ==> the remaining x_i = 1 ==> by
  942. (2) that x_2 = 1.  But this can't be, since x_{n-1} = 1 ==> x_1>0.
  943. Now assuming x_0 = n-2 we conclude that x_{n-2} = 1 by (2) if n>5
  944. ==> x_1 + ... + x_{n-3} + x_{n-1} + x_n = 2 and 1*x_1 + ... +
  945. (n-3)*x_{n-3} + (n-1)*x_{n-1} + n*x_n = 3 ==> x_1=1 and x_2=1,
  946. contradiction.
  947.  
  948. Case n>5:
  949.  
  950. We have that x_0 = n-3 and if n>=7 ==> x_{n-3}=1 ==> x_1=2 and
  951. x_2=1 by (1) and (2).  For the case n=6 we see that x_{n-3}=2
  952. leads to an easy contradiction, and we get the same result.  The
  953. cases n=4,5 are easy enough to handle, and lead to the two solutions
  954. above.
  955. -- 
  956.     -- clong@romulus.rutgers.edu (Chris Long)
  957.  
  958.