OFFSET
1,5
COMMENTS
For a fixed m, the smallest value of f_m(f_{m-1}(...f_1(1)...)) is achieved on the pair ((m,m-1,...,1), (1,2,...,m)) and is given by A370369(m) + m = A014144(m) + m!. Hence, to compute a(n) one can restrict m to those satisfying A014144(m) + m! <= n. - Max Alekseyev, Jan 29 2025
EXAMPLE
For n = 13, suitable pairs of permutations are ((3,2,1),(1,2,3)) and ((3,2,1),(1,3,2)).
CROSSREFS
KEYWORD
nonn
AUTHOR
Leroy Quet, Feb 21 2010
EXTENSIONS
Edited and terms a(14) onward added by Max Alekseyev, Jan 29 2025.
STATUS
approved
