OFFSET
1,2
EXAMPLE
a(3) = 3, which makes the concatenation of the first three terms: 123. After 3, the next-highest factor of 123 is 41, so a(4) = 41. The concatenation of the first four terms is then 12341. After 41, the next-highest factor of 12341 is 43, so a(5) = 43.
MAPLE
A[1]:= 1: A[2]:= 2: C:= 1:
for n from 3 to 20 do
C:= A[n-1]+C*10^(ilog10(A[n-1])+1);
A[n]:= min(select(`>`, numtheory:-divisors(C), A[n-1]))
od:
seq(A[i], i=1..20); # Robert Israel, Apr 12 2018
CROSSREFS
Compare A240588, in which each term does not need to strictly increase as long as it has not yet appeared in the sequence.
Compare also A171785, in which each term must divide the concatenation of all terms in the sequence including itself.
In A029455, each term divides the concatenation of all smaller positive integers.
In A110740, each term divides the concatenation of all strictly smaller positive integers.
KEYWORD
nonn,base
AUTHOR
Daniel Sterman, Apr 11 2018
EXTENSIONS
a(16)-a(20) from Robert Israel, Apr 12 2018
a(21)-a(29) from Daniel Suteu, Apr 12 2018
STATUS
approved