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
