Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
| Newsgroups | sci.math |
|---|---|
| Date | 2016-04-24 08:10 -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> <5d0f7843-f8c4-4fa8-b006-bd9432ba8f72@googlegroups.com> |
| Message-ID | <cdabcf63-b7ad-4429-aa4e-faee0a9dee53@googlegroups.com> (permalink) |
| Subject | Re: Prime stacking on the Tower of Hanoi. |
| From | djoyce099 <hlauk.h.bogart@gmail.com> |
On Saturday, April 23, 2016 at 11:15:46 AM UTC-4, djoyce099 wrote: > On Wednesday, April 20, 2016 at 8:57:09 PM UTC-4, djoyce099 wrote: > > +On Wednesday, April 20, 2016 at 2:52:32 PM UTC-4, djoyce099 wrote: > > > > > > > > Latest corrected update -- > > > > > > > > 2 disk 3 pegs = 3 least # moves. > > > > 3 disk 3 pegs = 7 least # moves. > > > > 5 disk 3 pegs = 31 least # moves. > > > > 7 disk 5 pegs = 19 least # moves. > > > > 11 disks 7 pegs = 31 least # moves. > > > > 13 disks 11 pegs = 31 least # moves. > > > > 17 disk 13 pegs = 43 least # moves. > > > > 19 disk 17 pegs = 43 least # moves. > > > > > > > > Still keeping the 3 discrete primes for each set. (disks, pegs and moves). > > > > > > > > Interesting that first a 4 gap and then a 2 gap have the same > > > > least moves. > > > > 11,7 set =31 moves > > > > 13,11 set =31 moves > > > > 17,13 set =43 moves > > > > 19,17 set =43 moves > > > > > > > > Dan > > > > > > Anyone tackling this problem? > > > > > > I am still working on the algorithm. A tough one but I am starting to > > > see a pattern. The sequential prime pair gaps have a great influence on > > > how to structure the algorithm to work for all sequential prime sets > > > up too 113 disks and 109 pegs. > > > > > > I thought by now someone would have a sequence of least amount > > > of moves for sequential prime pairs up to 97 disks and 89 pegs. > > > Remember the rules are the same except the amount of pegs increases after > > > 5 disks and 3 pegs. The pegs are always the smallest prime in each prime > > > set. > > > Just as long as the whole stack is moved to another peg one move at a time and never placing a smaller disk on a larger one in the process. > > > > > > I wish you good luck if you are trying to solve this. > > > I view this as a race to see who solves this first. > > > Me or the world. ;=) > > > > > > Dan > > > > 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 > > This was a programming nightmare. > > These are all the sequential prime sets. > > Okay guys and gals I finally have the completed sequence of least > possible moves for any sequential prime pair when these pairs are > used as -- disks are the largest prime number of the pair and pegs the > smallest prime number of the pair. > The sequence below shows the correct number of moves using > the same rules of the Tower of Hanoi except the different number of > pegs depending on the smaller sequential prime as the peg and then the > larger sequential prime as the disk. > The stack of disks begins on the first left most peg and the largest disk > is at the bottom and the next largest on top of that and so on until > reaching the top smallest disk. > The object of this game is to move the whole stack to any other peg > one move at a time and never placing a larger disk on a smaller one in the > process. The least possible number of moves for each prime pair is below. > > disk|peg|least number of moves possible for each prime set. > (5,3)= 15 > (7,5)= 19 > (11,7)=31 > (13,11)=31 > (17,13)=43 > (19,17 =43 > (23,19)=55 > (29,23)=75 > (31,29)=67 > (37,31)=91 > (41,37)=91 > (43,41)=91 > (47,43)=103 > (53,47)=123 > (59,53)=135 > (61,59)=127 > (67,61)=151 > (71,67)=151 > (73,71)=151 > (79,73)=175 > (83,79)=175 > (89,83)=195 > (97,89)=223 > (101,97)=211 > (103,101)=211 > (107,103)=223 > (109,107)=223 > (113,109)=235 > (127,113)=343 the largest gap(14) so far. > ...--->oo > > If anyone can find less moves for any or for all the above sets, please submit > your result. > > Thanks, > > Dan Note: above the first entry should be -- (5,3)= 31 total moves. Observing much more after the above post -- I discovered something quite profound. As stared early in this OP the twin prime set of (p and p-2) where p represents the number of disks and p-2 represents the number of pegs for any twin prime set the calculations were done and I discovered this. p*2+5 = least number of moves possible for any twin prime set. p-2)*2+9 = least number of moves possible for any twin prime set. So for any discrete twin prime set a discrete least number of moves is the result. This was found after I ran the algorithm to find the least number of moves for all twin prime sets up to 1000 count. So this sequence of moves produced by an algorithm, unbeknown to me, was predetermined by p*2+5 and (p-2)*2+9 which the algorithm did not reflect. Then I discovered this about all the > 2 prime gap sets. If (p_1-4) = p or prime gap (4) sets then-- p*2+9 = least number of moves possible for any 4 gap prime set. p(-4)*2+17 = least number of moves possible for any 4 gap prime set. If (p_1-6) = p or prime gap (6) sets then-- p*2+17 = least number of moves possible for any 6 gap prime set. p(-6)*2+29 = least number of moves possible for any 6 gap prime set. If (p_1-8) = p or prime gap (8) sets then-- p*2+29 = least number of moves possible for any 8 gap prime set. p(-8)*2+45 = least number of moves possible for any 8 gap prime set. If (p_1-10) = p or prime gap (10) sets then-- p*2+45 = least number of moves possible for any 10 gap prime set. p(-10)*2+65 = least number of moves possible for any 10 gap prime set. If (p_1-12) = p or prime gap (12) sets then-- p*2+65 = least number of moves possible for any 12 gap prime set. p(-12)*2+89 = least number of moves possible for any 12 gap prime set. If (p_1-14) = p or prime gap (14) sets then-- p*2+89 = least number of moves possible for any 14 gap prime set. p(-14)*2+117 = least number of moves possible for any 14 gap prime set. If (p_1-16) = p or prime gap (16) ...gap(n) --->oo Starting with the twin sets of the +5+4+8+12+16+20+24... Are the incremental values of each larger and larger prime gap. It is strange that this sequence of least moves possible is predetermined by the above calculations. Nothing in the algorithm that produced this sequence of least moves possible reflects the above. Comments are welcome. Dan
Back to sci.math | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll 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