A368136 Numbers k for which a generalized Collatz trajectory (x / k if k divides x, x + ceiling(x / k) otherwise) has non-elementary loops starting from a positive integer x_0 < k^2.
3, 4, 6, 9, 10, 15, 16, 17, 20, 23, 24, 27, 29, 31, 48, 54, 57, 78, 85, 94, 111, 118, 123, 127, 129, 134, 136, 171, 172, 225, 368, 419, 540, 547, 706, 744, 1112, 1148, 1169, 1229, 1308, 1403, 1545, 1782, 1869, 1926, 1939
Offset: 1
Examples
k = 3 is a term since it has a non-elementary loop starting from x_0 = 7: 7, 10, 14, 19, 26, 35, 47, 63, 21, 7, ... k = 2 is not a term since it has no non-elementary loops starting from x_0 < 4.
Links
- Walter Carnielli, Some natural generalizations of the Collatz Problem, Applied Mathematics E-Notes 15 (2015): 207-215.
- Wikipedia, Collatz Conjecture.
- Wikipedia, Floyd's cycle detection algorithm.
- OEIS Wiki, 3x+1 problem.
Crossrefs
Programs
-
Python
def containsloops(k): for x_ in range(k, k*k): s = 0 x = x_ m = x while x != 1 and s <= m: d, r = divmod(x, k) x = d if r == 0 else d + x + 1 s += 1 m = max(m, x) if s > m and x > k: return True return False print([k for k in range(1, 100) if containsloops(k)])
Extensions
a(43)-a(45) from Giuseppe Ciacco, Feb 05 2024
a(46)-a(48) from Giuseppe Ciacco, Feb 14 2024
Comments