OFFSET
2,2
COMMENTS
The restriction k < n is there to avoid the trivial values T(n,n) = 0. Consequently, the first term is T(2,1).
LINKS
Markus Sigg, Table of n, a(n) for n = 2..10012 (rows 2..142, flattened)
Hugo Pfoertner, Animated 3-d view of rows 2..200, view angle tilted by 15 degrees against the n-k plane, 2024.
EXAMPLE
The triangle begins
1,
7, 6,
2, 1, 5,
5, 4, 2, 3,
8, 7, 1, 6, 3,
...
PROG
(PARI) C(n) = {
my(L = List([n]));
while(n > 1, n = if(n % 2 == 0, n/2, 3*n+1); listput(L, n));
L
};
a375206(n, k) = {
my(Cn = C(n), Ck = C(k));
for(i = 1, #Cn,
for(j = 1, #Ck,
if(Cn[i] == Ck[j], return(i+j-2))
)
)
};
CROSSREFS
KEYWORD
tabl,nonn
AUTHOR
Markus Sigg, Oct 16 2024
STATUS
approved