OFFSET
1,5
COMMENTS
Many, if not all, sequences {A(m,n)}, for fixed m, are periodic after some point. A(m,n) = A(m,n+A132423(n)) for all n > some integer.
EXAMPLE
Array begins:
1, 1, 1, 1, 1, 1, ...
1, 2, 3, 2, 3, 2, ...
1, 3, 4, 5, 3, 4, ...
1, 4, 7, 4, 7, 4, ...
1, 5, 6, 13, 5, 6, ...
1, 6, 17, 6, 17, 6, ...
...
For example, the positive integers which are coprime to A(4,2)=4 are 1, 3, 5, 7, 9, ... The 4th of these integers is 7. So A(4,3) = 7.
PROG
(PARI) A(m, n) = if(n==1, 1, my(k, t=A(m, n-1)); for(c=1, m, until(gcd(k, t)==1, k++)); k); \\ Jinyuan Wang, Aug 10 2021
CROSSREFS
KEYWORD
nonn,tabl
AUTHOR
Leroy Quet, Aug 20 2007
EXTENSIONS
More terms from Jinyuan Wang, Aug 10 2021
STATUS
approved