home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / sci / math / 9439 < prev    next >
Encoding:
Text File  |  1992-07-22  |  1.9 KB  |  46 lines

  1. Newsgroups: sci.math
  2. Path: sparky!uunet!elroy.jpl.nasa.gov!usc!sol.ctr.columbia.edu!destroyer!ncar!unmvax!mimbres.cs.unm.edu!nmt.edu!news
  3. From: jefu@akbar.nmt.edu (Jeff Putnam)
  4. Subject: run the hailstone backwards...
  5. Message-ID: <1992Jul22.134601.6735@nmt.edu>
  6. Sender: news@nmt.edu
  7. Nntp-Posting-Host: akbar
  8. Organization: New Mexico Institute of Mining & Technology
  9. Date: Wed, 22 Jul 1992 13:46:01 GMT
  10. Lines: 34
  11.  
  12.  
  13. I was thinking the other day about the hailstone numbers
  14. (or whichever name you prefer to use) and thought about running
  15. them backwards as a programming exercise.  I wanted to
  16. give the numbers n and m and produce the m smallest precursors
  17. (a precursor to n is a number k, such that f(k), f(f(k)), and 
  18. so on eventually includes n) to n _in_ _ascending_ _order_.   
  19. That is, given (say) 5, we have 10, 20, 40... as precursors, 
  20. and 10 has 3 as a precursor, so 3 gives us 6, 12.... (this 
  21. branch will never get smaller) and so on.  So 5 has (at least)
  22. 3,6,10,12 as precursors
  23.  
  24. Now, each number n has at least one immediate precursor (2n)
  25. and then all the doubles of this.  If n=3k+1, then n has
  26. precursors 2n and k.  If n=3k+2, it only has one precursor
  27. (2(3k+2)=3(2k+1)+1), but that precursor has two precursors,
  28. one of which (2k+1) is less than n. 
  29.  
  30. So, to compute all the precursors we want to develop this
  31. tree.  This doesnt give us the precursors of n in ascending
  32. order.  If we always try the subtract-one-and-divide-by-3
  33. subtree first, we get smaller numbers, but there is still
  34. the possibility that by going out one of the multiply-by-2
  35. branches we will arrive at a number that is a multiple iterate
  36. of the 3n+1 branch.  (That is, it is 3n+1, where n is 3k+1 and
  37. k is 3j+1 and so on.)
  38.  
  39. So, my question is, is there a way to figure out which branches
  40. of the tree are best to explore in order to generate the
  41. m smallest precursors to n?
  42.  
  43. --
  44. jefu <=> Jeff Putnam - New Mexico Tech <=> jefu@nmt.edu 
  45. "Overturn the dominant paradigm"
  46.