OFFSET
1,2
FORMULA
Conjecture: a(n) = 0 for all n >= 15. - Max Alekseyev, Nov 10 2022
EXAMPLE
a(7) = 4620020 because:
4620020 mod 2 = 0, 4620020 mod 3 = 2, 4620020 mod 4 = 0,
4620020 mod 5 = 0, 4620020 mod 6 = 2, 4620020 mod 7 = 6,
4620020 mod 8 = 4.
MAPLE
P:=proc(q) local a, d, j, k, n, ok; for k from 1 to q do d:=0; for n from 10^(k-1) to 10^k-1 do
ok:=1; a:=n; for j from 1 to ilog10(n)+1 do if (a mod 10)<>n mod (j+1)
then ok:=0; break; else a:=trunc(a/10); fi; od; if ok=1 then print(n); d:=1; break; fi; od;
if n=10^k and d=0 then print(0); fi; od; end: P(20);
CROSSREFS
KEYWORD
nonn,base,hard
AUTHOR
Paolo P. Lava, Apr 10 2017
EXTENSIONS
a(11)-a(15) from Giovanni Resta, Apr 10 2017
a(16)-a(50) from Max Alekseyev, Nov 10 2022
STATUS
approved