Hay muy pocos de esos ciclos. Aquí está la lista de todos los ciclos de longitud $\le 30$ a partir de cualquier número $< 10^5$ que nunca excederá $2^{63}$:
[2, 7, 22, 11, 34, 17, 52, 26, 13, 40, 20, 10, 5, 16, 8, 4]
[2, 7, 22, 11, 34, 17, 52, 26, 13, 40, 20, 10, 5, 16, 8, 4, 13, 40, 20, 10, 5, 16, 8, 4]
[2, 7, 22, 11, 34, 17, 52, 26, 13, 40, 20, 10, 5, 16, 49, 148, 74, 37, 112, 56, 28, 85, 256, 128, 64, 32, 16, 8, 4]
[2, 7, 22, 11, 34, 17, 52, 26, 13, 40, 20, 61, 184, 92, 46, 23, 70, 35, 106, 53, 160, 80, 40, 20, 10, 5, 16, 8, 4]
[2, 7, 22, 11, 34, 17, 52, 26, 13, 40, 20, 61, 184, 92, 277, 832, 416, 208, 104, 52, 26, 13, 40, 20, 10, 5, 16, 8, 4]
[2, 7, 22, 67, 202, 101, 304, 152, 76, 38, 19, 58, 29, 88, 44, 22, 11, 34, 17, 52, 26, 13, 40, 20, 10, 5, 16, 8, 4]
[4, 13, 40, 20, 10, 5, 16, 8]
[4, 13, 40, 20, 10, 5, 16, 8, 25, 76, 38, 19, 58, 29, 88, 44, 22, 11, 34, 17, 52, 26, 13, 40, 20, 10, 5, 16, 8]
[4, 13, 40, 20, 10, 5, 16, 49, 148, 74, 37, 112, 56, 28, 14, 7, 22, 11, 34, 17, 52, 26, 13, 40, 20, 10, 5, 16, 8]
[4, 13, 40, 20, 10, 5, 16, 49, 148, 74, 37, 112, 56, 28, 85, 256, 128, 64, 32, 16, 8]
[4, 13, 40, 20, 61, 184, 92, 46, 23, 70, 35, 106, 53, 160, 80, 40, 20, 10, 5, 16, 8]
[4, 13, 40, 20, 61, 184, 92, 277, 832, 416, 208, 104, 52, 26, 13, 40, 20, 10, 5, 16, 8]
[5, 16, 8, 25, 76, 38, 19, 58, 29, 88, 44, 22, 11, 34, 17, 52, 26, 13, 40, 20, 10]
[5, 16, 49, 148, 74, 37, 112, 56, 28, 14, 7, 22, 11, 34, 17, 52, 26, 13, 40, 20, 10]
[5, 16, 49, 148, 445, 1336, 668, 334, 167, 502, 1507, 4522, 2261, 6784, 3392, 1696, 848, 424, 212, 106, 53, 160, 80, 40, 20, 10]
[5, 16, 49, 148, 445, 1336, 668, 2005, 6016, 3008, 1504, 752, 376, 188, 565, 1696, 848, 424, 212, 106, 53, 160, 80, 40, 20, 10]
[7, 22, 11, 34, 103, 310, 155, 466, 233, 700, 2101, 6304, 3152, 1576, 788, 394, 197, 592, 296, 148, 74, 37, 112, 56, 28, 14]
[7, 22, 11, 34, 103, 310, 931, 2794, 1397, 4192, 2096, 1048, 524, 262, 131, 394, 197, 592, 296, 148, 74, 37, 112, 56, 28, 14]
[7, 22, 67, 202, 101, 304, 152, 76, 38, 19, 58, 29, 88, 265, 796, 2389, 7168, 3584, 1792, 896, 448, 224, 112, 56, 28, 14]
[7, 22, 67, 202, 101, 304, 152, 76, 38, 115, 346, 173, 520, 260, 130, 65, 196, 98, 49, 148, 74, 37, 112, 56, 28, 14]
[7, 22, 67, 202, 101, 304, 152, 76, 229, 688, 344, 172, 86, 43, 130, 65, 196, 98, 49, 148, 74, 37, 112, 56, 28, 14]
[8, 25, 76, 38, 19, 58, 29, 88, 44, 133, 400, 200, 100, 50, 151, 454, 227, 682, 341, 1024, 512, 256, 128, 64, 32, 16]
[8, 25, 76, 38, 19, 58, 29, 88, 44, 133, 400, 200, 100, 301, 904, 452, 226, 113, 340, 170, 85, 256, 128, 64, 32, 16]
[8, 25, 76, 38, 19, 58, 29, 88, 265, 796, 2389, 7168, 3584, 1792, 896, 448, 224, 112, 56, 28, 85, 256, 128, 64, 32, 16]
[8, 25, 76, 38, 115, 346, 173, 520, 260, 130, 65, 196, 98, 49, 148, 74, 37, 112, 56, 28, 85, 256, 128, 64, 32, 16]
[8, 25, 76, 229, 688, 344, 172, 86, 43, 130, 65, 196, 98, 49, 148, 74, 37, 112, 56, 28, 85, 256, 128, 64, 32, 16]
[10, 31, 94, 47, 142, 71, 214, 643, 1930, 965, 2896, 1448, 724, 362, 181, 544, 272, 136, 68, 34, 17, 52, 26, 13, 40, 20]
[11, 34, 17, 52, 26, 13, 40, 20, 61, 184, 92, 277, 832, 416, 208, 625, 1876, 938, 469, 1408, 704, 352, 176, 88, 44, 22]
[11, 34, 17, 52, 26, 13, 40, 121, 364, 182, 91, 274, 137, 412, 1237, 3712, 1856, 928, 464, 232, 116, 58, 29, 88, 44, 22]
[11, 34, 17, 52, 26, 13, 40, 121, 364, 182, 547, 1642, 821, 2464, 1232, 616, 308, 154, 77, 232, 116, 58, 29, 88, 44, 22]
[11, 34, 17, 52, 26, 13, 40, 121, 364, 1093, 3280, 1640, 820, 410, 205, 616, 308, 154, 77, 232, 116, 58, 29, 88, 44, 22]
[11, 34, 17, 52, 26, 79, 238, 119, 358, 179, 538, 269, 808, 404, 202, 101, 304, 152, 76, 38, 19, 58, 29, 88, 44, 22]
[11, 34, 17, 52, 157, 472, 236, 118, 59, 178, 89, 268, 134, 67, 202, 101, 304, 152, 76, 38, 19, 58, 29, 88, 44, 22]
[11, 34, 17, 52, 157, 472, 236, 118, 355, 1066, 533, 1600, 800, 400, 200, 100, 50, 25, 76, 38, 19, 58, 29, 88, 44, 22]
[11, 34, 17, 52, 157, 472, 236, 709, 2128, 1064, 532, 266, 133, 400, 200, 100, 50, 25, 76, 38, 19, 58, 29, 88, 44, 22]
[13, 40, 20, 61, 184, 92, 46, 23, 70, 35, 106, 53, 160, 80, 40, 20, 61, 184, 92, 277, 832, 416, 208, 104, 52, 26]
[13, 40, 20, 61, 184, 92, 46, 23, 70, 35, 106, 53, 160, 80, 241, 724, 362, 181, 544, 272, 136, 68, 34, 17, 52, 26]
[13, 40, 20, 61, 184, 92, 277, 832, 416, 208, 104, 52, 26]
[14, 43, 130, 65, 196, 98, 49, 148, 74, 37, 112, 56, 28]
[14, 43, 130, 65, 196, 98, 49, 148, 74, 37, 112, 56, 28, 85, 256, 128, 64, 32, 16, 49, 148, 74, 37, 112, 56, 28]
[16, 49, 148, 74, 37, 112, 56, 28, 85, 256, 128, 64, 32]
[19, 58, 29, 88, 44, 22, 67, 202, 101, 304, 152, 76, 38]
[19, 58, 29, 88, 44, 133, 400, 200, 100, 50, 25, 76, 38]
[20, 61, 184, 92, 46, 23, 70, 35, 106, 53, 160, 80, 40]
Fue generado por el siguiente programa en Java:
public class ModifiedCollatz {
int maxLength = 30;
long[] currentPath = new long[maxLength];
void find() {
for (int i = 2; i < 100_000; i++) {
find(i, i, 0);
}
}
void find(long a, long goal, int depth) {
if (depth >= maxLength || a < goal) {
return;
}
if (depth > 0 && a == goal) {
System.out.println(Arrays.toString(Arrays.copyOf(currentPath, depth)));
return;
}
currentPath[depth] = a;
if (a % 2 == 0) {
find(a / 2, goal, depth + 1);
}
find(3 * a + 1, goal, depth + 1);
}
public static void main(String[] args) {
new ModifiedCollatz().find();
}
}