login
A387787
Positive integers k for which the Collatz 3x+1 dropping value (first value < k) is prime.
0
3, 4, 6, 7, 9, 10, 14, 17, 19, 22, 25, 26, 27, 31, 34, 38, 41, 43, 46, 49, 51, 55, 57, 58, 62, 63, 71, 74, 81, 82, 83, 86, 89, 91, 94, 97, 103, 105, 106, 111, 118, 119, 122, 129, 134, 137, 142, 145, 146, 147, 158, 166, 169, 175, 178, 179, 185, 194, 201, 202
OFFSET
1,1
COMMENTS
All k = 2*prime (A100484) are terms so the sequence is infinite.
A given prime can be the drop value of various different k, as for example 23 is the drop value of k = 27, 31, 46.
EXAMPLE
For k = 3: 3 -> 10 -> 5 -> 16 -> 8 -> 4 -> 2 -> 1. The first term < 3 is 2, which is prime, so 3 is a term.
For k = 8: 8 -> 4 -> 2 -> 1. The first term < 8 is 4, which is composite, so 8 is not a term.
PROG
(Python)
from sympy import isprime
def T(n):
return n//2 if n % 2 == 0 else 3*n + 1
def drop(k):
x = k
while x >= k:
x = T(x)
return x
def isok(k):
return isprime(drop(k))
(PARI) isok(k) = if (k>1, my(m=k); while(m >= k, m = if (m%2, 3*m+1, m/2)); isprime(m)); \\ Michel Marcus, Dec 06 2025
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Aied Sulaiman, Dec 04 2025
STATUS
approved