|
|
[code] { your program here } [/code] |
Result Number 1: 1 only (0,0) 3: 3 only (0,5),(5,0),(5,5) 4: 4 only (2,6),(4,2),(6,8),(8,4) 12: 12 20: 20 60: 60 |
(A,B): A B 1 2 3 4 (0,0): 0, 0, 0 (0,5): 0, 5, 5, 0 5 (5,0): 5, 0, 5, 5, 0 (5,5): 5, 5, 0, 5, 5 (2,6): 2, 6, 8, 4, 2, 6 (4,2): 4, 2, 6, 8, 4, 2 (6,8): 6, 8, 4, 2, 6, 8 (8,4): 8, 4, 2, 6, 8, 4 |
dutch wrote: |
---|
Strangely, the result and the number of such results are the same: |
(0 2) 2 4 6 0 6 6 2 8 0 8 8 6 4 0 4 4 8 2 0 2 |
(0 0) 0 - length 1 (type Even-Even) (0 1) 1 2 3 5 8 3 1 4 5 9 4 3 7 0 7 7 4 1 5 6 1 7 8 5 3 8 1 9 0 9 9 8 7 5 2 7 9 6 5 1 6 7 3 0 3 3 6 9 5 4 9 3 2 5 7 2 9 1 0 1 - length 60 (type Odd-Odd-Even) (0 2) 2 4 6 0 6 6 2 8 0 8 8 6 4 0 4 4 8 2 0 2 - length 20 (type Even-Even) (0 5) 5 0 5 - length 3 (type Odd-Odd-Even) (1 3) 4 7 1 8 9 7 6 3 9 2 1 3 - length 12 (type Odd-Odd-Even) (2 6) 8 4 2 6 - length 4 (type Even-Even) |
|
|
Any recomendations on how this looks |
lastchance wrote: |
---|
Think of this as a CYCLE of 20. For ANY consecutive pair on that cycle you must obtain THE SAME CYCLE, just starting in a different point on the cycle |
1: 1 (0,0) 3: 3 (0,50),(50,0),(50,50) 4: 4 (20,60),(40,20),(60,80),(80,40) 6: 12 (0,25),(0,75),(25,0),(25,25),(25,50),(25,75),(50,25),(50,75),(75,0),(75,25),(75,50),(75,75) 12: 60 ... 20: 120 60: 1800 100: 500 300: 7500 All the 6's: Type: (0,25) A B 1 2 3 4 5 6 0 25 25 50 75 25 0 25 25 0 25 25 50 75 25 0 25 25 50 75 25 0 25 25 25 50 75 25 0 25 25 50 50 75 25 0 25 25 50 75 75 25 0 25 25 50 75 25 Type: (0,75) A B 1 2 3 4 5 6 0 75 75 50 25 75 0 75 25 75 0 75 75 50 25 75 50 25 75 0 75 75 50 25 75 0 75 75 50 25 75 0 75 50 25 75 0 75 75 50 75 75 50 25 75 0 75 75 Types 1: 1 1: ( 0, 0) 3: 3 1: ( 0,50) 4: 4 1: (20,60) 6: 12 2: ( 0,25),( 0,75) 12: 60 5: ( 5,15),( 5,40),( 5,90),(10,30),(15,70) 20: 120 6: ( 0,20),( 4,12),( 4,32),( 4,52),( 8,24),(12,36) 60: 1800 30: ( 0, 5),( 0,10),( 0,15),( 0,55),( 0,65),( 1, 3),( 1, 8),( 1,13),( 1,18),( 1,28), ( 1,38),( 1,43),( 1,63),( 1,78),( 2, 6),( 2,16),( 2,21),( 2,26),( 2,31),( 3, 9), ( 3,14),( 3,19),( 3,34),( 3,54),( 3,89),( 4,17),( 4,42),( 6,13),( 6,18),( 7,66) 100: 500 5: ( 0, 4),( 0, 8),( 0,12),( 0,24),( 0,36) 300: 7500 25: ( 0, 1),( 0, 2),( 0, 3),( 0, 6),( 0, 7),( 0, 9),( 0,11),( 0,13),( 0,17),( 0,18), ( 0,19),( 0,21),( 0,22),( 0,23),( 0,34),( 0,51),( 0,53),( 0,57),( 0,59),( 0,61), ( 0,63),( 0,67),( 0,69),( 0,71),( 0,73) |
|
|
Enter first number: 1 Enter second number: 8 1 8 9 7 6 3 9 2 1 3 4 7 1 8 12 steps Enter first number: 2 Enter second number: 2 2 2 4 6 0 6 6 2 8 0 8 8 6 4 0 4 4 8 2 0 2 2 20 steps |
dutch wrote: | |
---|---|
The results and number of those results are not generally the same. This must be because there are usually more than one unique "necklace".
|
1 3 4 5 6 7 8 9 10 12 14 15 16 18 20 24 28 30 36 40 48 56 60 72 76 80 84 100 120 2 1 1 3 1 1 4 1 1 2 5 1 1 1 6 1 1 1 1 7 1 3 8 1 1 2 4 9 1 1 3 10 1 1 1 1 1 1 11 1 2 11 12 1 1 2 1 5 13 1 6 14 1 1 3 3 15 1 1 5 1 4 16 1 1 2 4 8 17 1 8 18 1 1 1 13 19 1 2 19 20 1 1 1 2 5 1 5 21 1 1 27 22 1 1 2 11 2 11 23 1 11 24 1 1 2 1 4 21 25 1 1 6 5 26 1 1 6 6 27 1 1 3 9 28 1 1 2 3 15 29 1 4 58 30 1 1 1 5 1 1 5 4 1 4 31 1 2 31 32 1 1 2 4 8 16 33 1 2 1 11 24 34 1 1 32 35 1 1 15 1 12 36 1 1 2 1 53 37 1 18 38 1 1 8 76 39 1 1 6 24 40 1 1 1 2 25 1 21 |