Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > sci.math > #331986 > unrolled thread
| Started by | djoyce099 <hlauk.h.bogart@gmail.com> |
|---|---|
| First post | 2016-04-16 20:47 -0700 |
| Last post | 2016-04-29 15:53 -0700 |
| Articles | 20 on this page of 35 — 3 participants |
Back to article view | Back to sci.math
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
Page 1 of 2 [1] 2 Next page →
| From | djoyce099 <hlauk.h.bogart@gmail.com> |
|---|---|
| Date | 2016-04-16 20:47 -0700 |
| Subject | Prime stacking on the Tower of Hanoi. |
| Message-ID | <e3a28014-dc1a-4366-9bf1-5d2d8e5ceb6e@googlegroups.com> |
Same rules apply except for the number of pegs. The number of prime pegs is determined on the next prime disks after disk 3. When moving a stack of largest to the smallest disk (smallest @ top of tower) to another peg moving one piece at a time and at no time placing a larger disk on a smaller one in the process. New rule added below. Starting with disk 5 and peg 3 on the next set change disk 5 to peg 5 and 7 disk making the next set 7 disk and 5 pegs and so on as observed below. . 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 = .. ??? This will makes a tough little programing problem. Maybe harder then the resent post on the letter, number, word association puzzle that was posted recently. Will each set of disks, pegs and moves always equal distinct primes? I doubt it. I am working on the algorithm now for 19 disk and 17 pegs. Starting with 7 disk and 5 pegs, one or more of these could be a wrong number of least moves. My programming skills leave a lot to be desired. Dan
[toc] | [next] | [standalone]
| From | djoyce099 <hlauk.h.bogart@gmail.com> |
|---|---|
| Date | 2016-04-17 02:44 -0700 |
| Message-ID | <f96a6aca-5b62-4814-b290-afb819748dcb@googlegroups.com> |
| In reply to | #331986 |
On Saturday, April 16, 2016 at 11:47:10 PM UTC-4, djoyce099 wrote: > Same rules apply except for the number of pegs. > The number of prime pegs is determined on the next > prime disks after disk 3. > When moving a stack of largest to the smallest disk > (smallest @ top of tower) to another peg moving > one piece at a time and at no time placing a larger > disk on a smaller one in the process. > > New rule added below. > Starting with disk 5 and peg 3 on the next set change > disk 5 to peg 5 and 7 disk making the next set > 7 disk and 5 pegs and so on as observed below. > . > > 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 = .. ??? > > This will makes a tough little programing problem. > Maybe harder then the resent post on the letter, number, word association > puzzle that was posted recently. > > Will each set of disks, pegs and moves always equal distinct primes? > I doubt it. > > I am working on the algorithm now for 19 disk and 17 pegs. > > Starting with 7 disk and 5 pegs, one or more of these could be a > wrong number of least moves. > > My programming skills leave a lot to be desired. > > Dan 19 disk and 17 pegs = 43 least number of moves. The (3) discrete primes are holding for each set( The number of disk, pegs and moves). Next on the list is -- 23 disks and 19 pegs. Dan
[toc] | [prev] | [next] | [standalone]
| From | djoyce099 <hlauk.h.bogart@gmail.com> |
|---|---|
| Date | 2016-04-17 03:47 -0700 |
| Message-ID | <85709aec-7e4a-4085-9eea-edd5c575ecd6@googlegroups.com> |
| In reply to | #332012 |
On Sunday, April 17, 2016 at 5:44:22 AM UTC-4, djoyce099 wrote: > On Saturday, April 16, 2016 at 11:47:10 PM UTC-4, djoyce099 wrote: > > Same rules apply except for the number of pegs. > > The number of prime pegs is determined on the next > > prime disks after disk 3. > > When moving a stack of largest to the smallest disk > > (smallest @ top of tower) to another peg moving > > one piece at a time and at no time placing a larger > > disk on a smaller one in the process. > > > > New rule added below. > > Starting with disk 5 and peg 3 on the next set change > > disk 5 to peg 5 and 7 disk making the next set > > 7 disk and 5 pegs and so on as observed below. > > . > > > > 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 = .. ??? > > > > This will makes a tough little programing problem. > > Maybe harder then the resent post on the letter, number, word association > > puzzle that was posted recently. > > > > Will each set of disks, pegs and moves always equal distinct primes? > > I doubt it. > > > > I am working on the algorithm now for 19 disk and 17 pegs. > > > > Starting with 7 disk and 5 pegs, one or more of these could be a > > wrong number of least moves. > > > > My programming skills leave a lot to be desired. > > > > Dan > > 19 disk and 17 pegs = 43 least number of moves. > > The (3) discrete primes are holding for each set( The number of disk, pegs and > moves). > > Next on the list is -- 23 disks and 19 pegs. > > Dan 23 disk and 19 pegs = 55 least number of moves. Breaking the 3 discrete prime pattern. Is there a faster algorithm to calculate these? Dan
[toc] | [prev] | [next] | [standalone]
| From | djoyce099 <hlauk.h.bogart@gmail.com> |
|---|---|
| Date | 2016-04-17 14:09 -0700 |
| Message-ID | <9595455f-1b9e-4231-894e-a05d64b27195@googlegroups.com> |
| In reply to | #332014 |
I guess this one is to hard because there is
no takers for a general algorithm.
Just like my semi-prime super cycles, no one has duplicated them
or even attempted to.
Only to be criticized for naming them semi-prime super cycles.
I guess if you are not math savvy no one looks at your work.
Whatever!!
Dan
[toc] | [prev] | [next] | [standalone]
| From | djoyce099 <hlauk.h.bogart@gmail.com> |
|---|---|
| Date | 2016-04-17 15:24 -0700 |
| Message-ID | <2a8d008f-3495-42e9-9fd3-2ed0b702d8be@googlegroups.com> |
| In reply to | #332049 |
On Sunday, April 17, 2016 at 5:09:20 PM UTC-4, djoyce099 wrote: > I guess this one is to hard because there is > no takers for a general algorithm. > Just like my semi-prime super cycles, no one has duplicated them > or even attempted to. > Only to be criticized for naming them semi-prime super cycles. > I guess if you are not math savvy no one looks at your work. > > Whatever!! > > Dan 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
[toc] | [prev] | [next] | [standalone]
| From | djoyce099 <hlauk.h.bogart@gmail.com> |
|---|---|
| Date | 2016-04-20 11:52 -0700 |
| Message-ID | <f2f882b9-c0a5-42e0-8f41-3ca03b1eab03@googlegroups.com> |
| In reply to | #332051 |
>
> 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
[toc] | [prev] | [next] | [standalone]
| From | Jamie M <jmorken@shaw.ca> |
|---|---|
| Date | 2016-04-20 13:06 -0700 |
| Message-ID | <nf8nfs$lc$2@gioia.aioe.org> |
| In reply to | #332212 |
On 4/20/2016 11:52 AM, 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 > > > Hi, I look forward to reading your results but unfortunately don't have time to try to program the algorithm right now. cheers, Jamie
[toc] | [prev] | [next] | [standalone]
| From | djoyce099 <hlauk.h.bogart@gmail.com> |
|---|---|
| Date | 2016-04-20 13:17 -0700 |
| Message-ID | <277d7ac4-f634-47e1-bcad-56f56b86aadb@googlegroups.com> |
| In reply to | #332214 |
> Hi, > > I look forward to reading your results but unfortunately don't have time > to try to program the algorithm right now. > > cheers, > Jamie Hi Jamie, By the looks of things, zero sum games are more important to tackle. Well maybe a slight edge if using the whole deck of 52 cards by counting cards. It looks like the little response this problem has received you have plenty of time. Good luck, Dan
[toc] | [prev] | [next] | [standalone]
| From | djoyce099 <hlauk.h.bogart@gmail.com> |
|---|---|
| Date | 2016-04-20 17:56 -0700 |
| Message-ID | <a9f04756-007e-42cd-b8e3-95323548f685@googlegroups.com> |
| In reply to | #332212 |
+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
[toc] | [prev] | [next] | [standalone]
| From | djoyce099 <hlauk.h.bogart@gmail.com> |
|---|---|
| Date | 2016-04-20 20:29 -0700 |
| Message-ID | <2c508e7f-6870-4611-a159-06b8d4cc19a4@googlegroups.com> |
| In reply to | #332225 |
> > 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
[toc] | [prev] | [next] | [standalone]
| From | djoyce099 <hlauk.h.bogart@gmail.com> |
|---|---|
| Date | 2016-04-21 05:38 -0700 |
| Message-ID | <02e6d644-c054-4f72-ad5a-3eb7b08d6d1f@googlegroups.com> |
| In reply to | #332232 |
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 Then naturally this follows for the largest twin in each set divided into its least number of moves for that set of twins -- 19==5(mod7) 31==5(mod13) 43==5(mod19) 67==5(mod31) 91==5(mod43} 127==5(mod61) 151==5(mod73) 211==5(mod103) ... I believe --->oo The rational remainder of all these converges down too (2). As does the first list of the smaller twin. Still working on the 4 gap sequential primes to add too the algorithm. Dan
[toc] | [prev] | [next] | [standalone]
| From | djoyce099 <hlauk.h.bogart@gmail.com> |
|---|---|
| Date | 2016-04-22 18:13 -0700 |
| Message-ID | <9ff63bc2-4ecf-49de-8fa7-bfd534be9e69@googlegroups.com> |
| In reply to | #332232 |
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
[toc] | [prev] | [next] | [standalone]
| From | djoyce099 <hlauk.h.bogart@gmail.com> |
|---|---|
| Date | 2016-04-23 08:15 -0700 |
| Message-ID | <5d0f7843-f8c4-4fa8-b006-bd9432ba8f72@googlegroups.com> |
| In reply to | #332225 |
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
[toc] | [prev] | [next] | [standalone]
| From | djoyce099 <hlauk.h.bogart@gmail.com> |
|---|---|
| Date | 2016-04-23 17:22 -0700 |
| Message-ID | <6bcb2e66-e2fe-447c-831b-916fc64a9101@googlegroups.com> |
| In reply to | #332445 |
> 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 (5,3) was not in the algorithm but instead of (5,3)=15 it should be-- (5,3)=31 or 2^5-1 which was in my original listing. So I just corrected one of my entries. I believe all the rest are correct in this completed list. Dan
[toc] | [prev] | [next] | [standalone]
| From | djoyce099 <hlauk.h.bogart@gmail.com> |
|---|---|
| Date | 2016-04-24 08:10 -0700 |
| Message-ID | <cdabcf63-b7ad-4429-aa4e-faee0a9dee53@googlegroups.com> |
| In reply to | #332445 |
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
[toc] | [prev] | [next] | [standalone]
| From | Jamie M <jmorken@shaw.ca> |
|---|---|
| Date | 2016-04-26 13:27 -0700 |
| Message-ID | <nfoivl$mk$2@gioia.aioe.org> |
| In reply to | #332549 |
On 4/24/2016 8:10 AM, djoyce099 wrote: > 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 > Hi, If you are trying to see the mininum number of required moves, isn't p*2+5 pretty much always less than (p-2)*2+9 ? Also you say these are the mininum number of required moves for a twin prime set, but what about non twin prime sets? I wonder if they also have the same p*2+5 minimum where p is again the number of discs and p-2 is the number of pegs, and is greater than p as in your example of twin primes discs and pegs (p and p-2) cheers, Jamie
[toc] | [prev] | [next] | [standalone]
| From | djoyce099 <hlauk.h.bogart@gmail.com> |
|---|---|
| Date | 2016-04-26 13:41 -0700 |
| Message-ID | <811c9595-515e-4811-9109-e07ac3bc0630@googlegroups.com> |
| In reply to | #332735 |
On Tuesday, April 26, 2016 at 4:27:43 PM UTC-4, Jamie M wrote: > On 4/24/2016 8:10 AM, djoyce099 wrote: > > > 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 > > > > > Hi, > > > If you are trying to see the mininum number of required moves, > isn't p*2+5 pretty much always less than (p-2)*2+9 ? > > Also you say these are the mininum number of required moves for a > twin prime set, but what about non twin prime sets? I wonder if > they also have the same p*2+5 minimum where p is again the number of > discs and p-2 is the number of pegs, and is greater than p as in > your example of twin primes discs and pegs (p and p-2) > > cheers, > Jamie Hi Jamie, I just posted a rebuttal to my own numbers and saw your post. Read my latest next to last and last post carefully and I do include all prime gaps but my last post give a correction to gap (8) 97 disk 89 pegs. 211 least possible moves instead of 223.
[toc] | [prev] | [next] | [standalone]
| From | djoyce099 <hlauk.h.bogart@gmail.com> |
|---|---|
| Date | 2016-04-26 13:26 -0700 |
| Message-ID | <31d44efb-a430-41e7-85a7-00d69e62ce05@googlegroups.com> |
| In reply to | #332445 |
> 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
This still remains a programming nightmare.
I found that (97disk and 89pegs) least number of moves possible is
213 and not 223 like I show above.
Explanation below--
97 disk on first peg and all 88 of remaining pegs are available.
89+1=90
90/2 =45
Move 45 disk starting with one and placing the smallest disk on the 46th peg and then placing disk 2 on the 45th peg and so on until the 45th disk is placed on peg 2. Remember peg 1 still has the remaining 52 disks with 97 as the largest disk on the bottom and 46th disk at the top leaving a stack of 52.
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
[toc] | [prev] | [next] | [standalone]
| From | djoyce099 <hlauk.h.bogart@gmail.com> |
|---|---|
| Date | 2016-04-26 13:46 -0700 |
| Message-ID | <de789b81-66e2-45cc-b59d-5860d1bfb4f6@googlegroups.com> |
| In reply to | #332734 |
On Tuesday, April 26, 2016 at 4:26:52 PM UTC-4, djoyce099 wrote: > > 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 > > This still remains a programming nightmare. > I found that (97disk and 89pegs) least number of moves possible is > 213 and not 223 like I show above. > > Explanation below-- > > 97 disk on first peg and all 88 of remaining pegs are available. > 89+1=90 > 90/2 =45 > > Move 45 disk starting with one and placing the smallest disk on the 46th peg and then placing disk 2 on the 45th peg and so on until the 45th disk is placed on peg 2. Remember peg 1 still has the remaining 52 disks with 97 as the largest disk on the bottom and 46th disk at the top leaving a stack of 52. > > 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 Correction: At the top of my rebuttal post it should be 211 moves not 213. Dan
[toc] | [prev] | [next] | [standalone]
| From | djoyce099 <hlauk.h.bogart@gmail.com> |
|---|---|
| Date | 2016-04-26 17:16 -0700 |
| Message-ID | <30989ff1-c5f7-4bcc-a49c-6fad1bbb3e90@googlegroups.com> |
| In reply to | #332734 |
On Tuesday, April 26, 2016 at 4:26:52 PM UTC-4, djoyce099 wrote: > > 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 > > This still remains a programming nightmare. > I found that (97disk and 89pegs) least number of moves possible is > 213 and not 223 like I show above. > > Explanation below-- > > 97 disk on first peg and all 88 of remaining pegs are available. > 89+1=90 > 90/2 =45 > > Move 45 disk starting with one and placing the smallest disk on the 46th peg and then placing disk 2 on the 45th peg and so on until the 45th disk is placed on peg 2. Remember peg 1 still has the remaining 52 disks with 97 as the largest disk on the bottom and 46th disk at the top leaving a stack of 52. > > 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
[toc] | [prev] | [next] | [standalone]
Page 1 of 2 [1] 2 Next page →
Back to top | Article view | sci.math
csiph-web