OFFSET
1,3
COMMENTS
If p=T(n,k0) is prime, then T(n,k) = p - 1 + p/p = p for k > k0. Thus, primes are fixed points of this map. The number of different terms in the n-th row is given by A330437.
EXAMPLE
Table begins:
1, 1, 1, 1, 1, ...
2, 2, 2, 2, 2, ...
3, 3, 3, 3, 3, ...
4, 5, 5, 5, 5, ...
5, 5, 5, 5, 5, ...
6, 7, 7, 7, 7, ...
7, 7, 7, 7, 7, ...
8, 11, 11, 11, 11, ...
9, 11, 11, 11, 11, ...
10, 11, 11, 11, 11, ...
11, 11, 11, 11, 11, ...
12, 15, 17, 17, 17, ...
13, 13, 13, 13, 13, ...
14, 15, 17, 17, 17, ...
MATHEMATICA
Clear[f, it, order, seq]; f[n_]:=f[n]=n-1+n/FactorInteger[n][[-1]][[1]]; it[k_, n_]:=it[k, n]=f[it[k, n-1]]; it[k_, 1]=k; SetAttributes[f, Listable]; SetAttributes[it, Listable]; it[#, Range[10]]&/@Range[800]
CROSSREFS
KEYWORD
nonn,tabl
AUTHOR
Elijah Beregovsky, Feb 16 2020
STATUS
approved