OFFSET
1,2
COMMENTS
Like A249398, but without the constraint a(n) > a(n-1).
LINKS
Paolo P. Lava, Table of n, a(n) for n = 1..100
EXAMPLE
a(1) = 1;
a(2) = 2 -> 12 /2 = 6;
Now we cannot use 3 as the next term because it does not divide 23.
a(3) = 4 -> 24 / 4 = 6;
a(4) = 5 -> 45 / 5 = 9;
Again, 3, 6, 7, 8 and 9 cannot be used as the next term.
a(5) = 10 -> 510 / 10 = 51;
a(6) = 20 -> 1020 / 20 = 51;
a(7) = 8 -> 208 / 8 = 26; etc.
MAPLE
with(numtheory); P:=proc(q) local a, b, k, n; print(1); a:=1; b:={1};
for k from 1 to q do for n from 1 to q do if nops({n} intersect b)<1
then if type((a*10^(1+ilog10(n))+n)/n, integer)
then a:=n; b:=b union {n}; print(n); break;
fi; fi; od; od; end: P(10^12);
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Paolo P. Lava, Dec 01 2014
STATUS
approved