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


Groups > sci.math > #332416

Re: Prime stacking on the Tower of Hanoi.

Newsgroups sci.math
Date 2016-04-22 18:13 -0700
References (3 earlier) <9595455f-1b9e-4231-894e-a05d64b27195@googlegroups.com> <2a8d008f-3495-42e9-9fd3-2ed0b702d8be@googlegroups.com> <f2f882b9-c0a5-42e0-8f41-3ca03b1eab03@googlegroups.com> <a9f04756-007e-42cd-b8e3-95323548f685@googlegroups.com> <2c508e7f-6870-4611-a159-06b8d4cc19a4@googlegroups.com>
Message-ID <9ff63bc2-4ecf-49de-8fa7-bfd534be9e69@googlegroups.com> (permalink)
Subject Re: Prime stacking on the Tower of Hanoi.
From djoyce099 <hlauk.h.bogart@gmail.com>

Show all headers | View raw


On Wednesday, April 20, 2016 at 11:29:12 PM UTC-4, djoyce099 wrote:
> > 
> > Same gap does influence the structure of algorithm.
> > 
> > So far all twins (primes) entered as input into the algorithm are working.
> > 
> > disk | peg
> > 5    | 3
> > 7    | 5
> > 13   | 11
> > 19   | 17
> > 31   | 29
> > 43   | 41
> > 61   | 59
> > 73   | 71
> > 103  | 101
> > 109  | 107
> > 139  | 137
> > 151  | 149
> > 181  | 179
> > 193  | 191
> > 199  | 197 
> > 
> > The sequence of least moves for the above twin prime sets =
> > 
> > 15,19,31,43,67,91,127,151,211,223,283,307,367,391,403... 
> > 
> > The next project is to add gap prime sets of 4,6,8,10,12,14...to the algorithm.
> > This will fill in the gaps in the above sequence that only reflects the twin
> > prime pairs and their least amount of moves per set.
> > 
> > Dan
> 
> An interesting modulus is created when the smallest prime twin P_1
> is divided into its corresponding least moves number --
> Starting with 11.
> 31==9(mod11)
> 43==9(mod17)
> 67==9(mod29)
> 91==9(mod41)
> 127==9(mod59)    
> 151==9(mod71)
> 211==9(mod101)
> Will this always be a modulus (9)?
> 
> Dan

Continuing on with these calculations related just to the twin prime sets. 

2 disk  3 pegs = 3 least possible number of moves. 
5 disk  3 pegs = 31 "      "        "     "    "  
7 disk  5 pegs = 19 "      "        "     "    " --Twin 
11 disks 7 pegs = 31 "      "        "     "    "  
13 disks 11 pegs = 31 "      "        "     "    " --Twin 
17 disk  13 pegs = 43 "      "        "     "    " 
19 disk  17 pegs = 43 "      "        "     "    " --Twin 
23 disk  19 pegs = ???
-
Starting with prime twin 5,7 where 7 = number of disk and 5
is the number of pegs then to create this sequence of least
moves for any of the twin prime sets p and p-2 then using 
only the larger prime in the twin ---
 
7*2=14+5 =19
13*2=26+5 =31
19*2=38+5 =43
31*2=62+5 =67
43*2=86+5 =91
61*2=122+5 =127
73*2=146+5 =151
103*2=206+5 =211
109*2=218+5 =223
139*2=278+5 =283
151*2=302+5 =307
.. ---> oo
Using the smaller prime of the twin set you add (9) with the same result.
 
Using sequential twin primes the least amount of moves for each set
where the largest twin = the number of disks to be moved and the 
smaller twin = the number of pegs these disks can be placed.
Moving one disk at a time and never placing a smaller disk on 
a larger one.
The list below matches the actual twins calculated moves above
in the first listing where they are marked as twins.     
19,31,43,67,91,127,151,211,223,283,307...

I would say quite an interesting find.
I would like to know if there are many more interesting discoveries
when I find or some one else finds the least moves for the 4,6,8.. gap prime
sets. 

Anyone attempting this for larger prime gaps then (2}?
The above calculations should be a good motivator. ;-)
You never know what you will discover!

Dan

 

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