Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > sci.math > #332768

Re: Prime stacking on the Tower of Hanoi.

From Jamie M <jmorken@shaw.ca>
Newsgroups sci.math
Subject Re: Prime stacking on the Tower of Hanoi.
Date 2016-04-26 21:27 -0700
Organization Aioe.org NNTP Server
Message-ID <nfpf42$14fj$2@gioia.aioe.org> (permalink)
References (5 earlier) <f2f882b9-c0a5-42e0-8f41-3ca03b1eab03@googlegroups.com> <a9f04756-007e-42cd-b8e3-95323548f685@googlegroups.com> <5d0f7843-f8c4-4fa8-b006-bd9432ba8f72@googlegroups.com> <31d44efb-a430-41e7-85a7-00d69e62ce05@googlegroups.com> <30989ff1-c5f7-4bcc-a49c-6fad1bbb3e90@googlegroups.com>

Show all headers | View raw


On 4/26/2016 5:16 PM, djoyce099 wrote:

>> Total moves so far = 45
>> The total pegs used = 46
>> the total pegs available 89-46 = 43
>> We need 52-43 =9 more pegs to run out the first stack on peg 1.
>> Leaving peg 1 empty. This is the start of moving the whole stack to
>> another peg.
>> So 9 more spots are needed to do this. Move disk 9 onto disk 10 move
>> disk 8 onto disk 9 and so on until disk 1 is on top of this small tower.
>>
>> 45+9 = 54 total moves so far.
>> Now run out the 52 remaining disks on the 52 remaining pegs.
>> 45+9+52 =106 total moves so far.
>> Now restack onto 97 disk --96 disk -95 disk all the way down to 46 disk.
>> 45+9+52+51 =157 total moves so far.
>> Now unstack disk 10 at the bottom  9,8,7,6,5,4,3,2,1 =9 moves
>> 45+9+52+51+9 =166 total moves so far.
>> Now all 45 disk occupy 45 pegs so it can now go on the main partially
>> completed tower where 97 is at the bottom.
>> 45+9+52+51+9+45 = 211 Final least possible number of moves.
>>
>> I show 223 least possible moves for 97 disk and 89 pegs in my final listing
>> above. "WRONG"
>>
>> So back to the drawing board.
>>
>> I still believe there is some mathematical implications for the size gap
>> between sequential prime sets of disk and pegs.
>>
>> Any help would be appreciated.
>>
>> Dan
>
> This should be the final (I hope) correction for all sequential prime gaps
> and their least possible moves modeled after the original Tower of Hanoi but with one huge difference.  Number of pegs = the smallest sequential prime
> and the number of disks = the next higher sequential prime.
>
> I have worked out a general formula that change all prime gap sets > 4
> and their least moves possible. Prime gap sets 2 and 4 are correct in my latest list but NOT 6 or 8 or 14 gaps.
>
> To get the math right for all sequential gap prime sets and their least
> possible moves to place the full stack of the larger prime onto another
> peg of the smaller sequential prime pegs moving one disk at a time and never
> placing a  larger disk on a smaller disk in the process.
>
> Starting with gap 2-- and prime set 7 disks and 5 pegs.
>
>
> I have worked out a general formula for all gaps I believe.
>
> 7disks|5pegs = 5*2+9=19 least moves possible.
> 11disks|7pegs =7*2+17=31 least moves possible.
> 13disks|11pegs =11*2+9=31 least moves possible.
> 17disks|13pegs =13*2+17=43 least moves possible.
> 19disks|17pegs =17*2+9=43 least moves possible.
> 23disks|19pegs =19*2+17=55 least moves possible.
> Above all the same as original list because up too 4 gap the formula worked.
>
> 29disk|23pegs =23*2+25=71 least moves possible. The sum change between 4 gap
> and 6 gap is 8 not 12. This (8) sum is added to the next gap and so on.
>
> For 8 gap --
> 97disks|89pegs =89*2+25+8 =211 least moves possible.
> For 10 gap --
> 191disks|181pegs =181*2+25+8+8 =403 least moves possible.
> For 12 gap --
> 211disks|199pegs =199*2+25+8+8+8 =447 least moves possible.
> For 14 gap --
> 127disks|113pegs =113*2+25+8+8+8+8 =283 least moves possible.
>
> You can see the mathematical pattern.
> I will print out the complete list in a day or so when I change the algorithm. This new math progression starting with 9+8+8+8+8+8+8--->oo for each
> progressive gap prime set and for each set you add (p-2) p being the largest
> in the set (p-2)*2.
>
> Any comments?
>
> Dan
>


Hi,

Cool, ok so is this just for prime numbers or does the pattern work for 
non-prime disks/pegs?

ie using your pattern for disks - pegs = 2

 > 7disks|5pegs = 5*2+9=19 least moves possible.

So for gap 2 if I use:

15disks|13pegs = 13*2+9=35 least possible moves?

ie using your pattern for disks - pegs = 4

 > 11disks|7pegs =7*2+17=31 least moves possible.

9disks|5pegs = 5*2+17=27 least possible moves?

Just curious if this pattern is only for prime
count of disks/pegs or not.  Or if it is only
for prime count of disks and/or pegs.

cheers,
Jamie


Back to sci.math | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Prime stacking on the Tower of Hanoi. djoyce099 <hlauk.h.bogart@gmail.com> - 2016-04-16 20:47 -0700
  Re: Prime stacking on the Tower of Hanoi. djoyce099 <hlauk.h.bogart@gmail.com> - 2016-04-17 02:44 -0700
    Re: Prime stacking on the Tower of Hanoi. djoyce099 <hlauk.h.bogart@gmail.com> - 2016-04-17 03:47 -0700
      Re: Prime stacking on the Tower of Hanoi. djoyce099 <hlauk.h.bogart@gmail.com> - 2016-04-17 14:09 -0700
        Re: Prime stacking on the Tower of Hanoi. djoyce099 <hlauk.h.bogart@gmail.com> - 2016-04-17 15:24 -0700
          Re: Prime stacking on the Tower of Hanoi. djoyce099 <hlauk.h.bogart@gmail.com> - 2016-04-20 11:52 -0700
            Re: Prime stacking on the Tower of Hanoi. Jamie M <jmorken@shaw.ca> - 2016-04-20 13:06 -0700
              Re: Prime stacking on the Tower of Hanoi. djoyce099 <hlauk.h.bogart@gmail.com> - 2016-04-20 13:17 -0700
            Re: Prime stacking on the Tower of Hanoi. djoyce099 <hlauk.h.bogart@gmail.com> - 2016-04-20 17:56 -0700
              Re: Prime stacking on the Tower of Hanoi. djoyce099 <hlauk.h.bogart@gmail.com> - 2016-04-20 20:29 -0700
                Re: Prime stacking on the Tower of Hanoi. djoyce099 <hlauk.h.bogart@gmail.com> - 2016-04-21 05:38 -0700
                Re: Prime stacking on the Tower of Hanoi. djoyce099 <hlauk.h.bogart@gmail.com> - 2016-04-22 18:13 -0700
              Re: Prime stacking on the Tower of Hanoi. djoyce099 <hlauk.h.bogart@gmail.com> - 2016-04-23 08:15 -0700
                Re: Prime stacking on the Tower of Hanoi. djoyce099 <hlauk.h.bogart@gmail.com> - 2016-04-23 17:22 -0700
                Re: Prime stacking on the Tower of Hanoi. djoyce099 <hlauk.h.bogart@gmail.com> - 2016-04-24 08:10 -0700
                Re: Prime stacking on the Tower of Hanoi. Jamie M <jmorken@shaw.ca> - 2016-04-26 13:27 -0700
                Re: Prime stacking on the Tower of Hanoi. djoyce099 <hlauk.h.bogart@gmail.com> - 2016-04-26 13:41 -0700
                Re: Prime stacking on the Tower of Hanoi. djoyce099 <hlauk.h.bogart@gmail.com> - 2016-04-26 13:26 -0700
                Re: Prime stacking on the Tower of Hanoi. djoyce099 <hlauk.h.bogart@gmail.com> - 2016-04-26 13:46 -0700
                Re: Prime stacking on the Tower of Hanoi. djoyce099 <hlauk.h.bogart@gmail.com> - 2016-04-26 17:16 -0700
                Re: Prime stacking on the Tower of Hanoi. Jamie M <jmorken@shaw.ca> - 2016-04-26 21:27 -0700
                Re: Prime stacking on the Tower of Hanoi. djoyce099 <hlauk.h.bogart@gmail.com> - 2016-04-27 04:36 -0700
                Re: Prime stacking on the Tower of Hanoi. djoyce099 <hlauk.h.bogart@gmail.com> - 2016-04-27 21:47 -0700
                Re: Prime stacking on the Tower of Hanoi. djoyce099 <hlauk.h.bogart@gmail.com> - 2016-04-27 21:49 -0700
                Re: Prime stacking on the Tower of Hanoi. Jamie M <jmorken@shaw.ca> - 2016-04-27 23:36 -0700
                Re: Prime stacking on the Tower of Hanoi. djoyce099 <hlauk.h.bogart@gmail.com> - 2016-04-28 08:31 -0700
                Re: Prime stacking on the Tower of Hanoi. djoyce099 <hlauk.h.bogart@gmail.com> - 2016-04-28 10:05 -0700
                Re: Prime stacking on the Tower of Hanoi. djoyce099 <hlauk.h.bogart@gmail.com> - 2016-04-28 10:13 -0700
                Re: Prime stacking on the Tower of Hanoi. djoyce099 <hlauk.h.bogart@gmail.com> - 2016-04-29 06:40 -0700
                Re: Prime stacking on the Tower of Hanoi. djoyce099 <hlauk.h.bogart@gmail.com> - 2016-04-29 11:58 -0700
      Re: Prime stacking on the Tower of Hanoi. James Waldby <not@valid.invalid> - 2016-04-18 00:17 +0000
        Re: Prime stacking on the Tower of Hanoi. djoyce099 <hlauk.h.bogart@gmail.com> - 2016-04-17 21:25 -0700
          Re: Prime stacking on the Tower of Hanoi. djoyce099 <hlauk.h.bogart@gmail.com> - 2016-04-28 12:18 -0700
            Re: Prime stacking on the Tower of Hanoi. djoyce099 <hlauk.h.bogart@gmail.com> - 2016-04-29 12:22 -0700
              Re: Prime stacking on the Tower of Hanoi. djoyce099 <hlauk.h.bogart@gmail.com> - 2016-04-29 15:53 -0700

csiph-web