OFFSET
1,2
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, 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) = 25 -> 2025 / 25 = 81; etc.
MAPLE
with(numtheory); P:=proc(q) local a, k, n; print(1); a:=1;
for n from 2 to q do if type((a*10^(1+ilog10(n))+n)/n, integer)
then a:=n; print(n); fi; od; end: P(10^12);
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Paolo P. Lava, Dec 01 2014
STATUS
approved