OFFSET
1,1
COMMENTS
A244112(68868) = 3826 and 68868 / 3826 = 18.
LINKS
Paolo P. Lava, Table of n, a(n) for n = 1..200
MAPLE
with(numtheory): P:=proc(q) local a, b, c, d, j, k, n; for n from 1 to q do a:=sort(convert(n, base, 10));
for k from 1 to trunc(nops(a)/2) do c:=a[k]; a[k]:=a[nops(a)-k+1]; a[nops(a)-k+1]:=c; od; k:=1; b:=a[1]; c:=0;
for j from 2 to nops(a) do if a[j]=b then k:=k+1; else d:=10*k+b; c:=c*10^(ilog10(d)+1)+d; k:=1; b:=a[j]; fi; od;
d:=10*k+b; c:=c*10^(ilog10(d)+1)+d; if type(n/c, integer) then print(n); fi; od; end: P(10^99);
MATHEMATICA
Select[Range[10^6], Divisible[#, FromDigits@ Flatten@ Map[IntegerDigits, DeleteCases[#, k_ /; First@ k == 0]] &@ Reverse@ MapIndexed[{#1, (First@ #2 - 1)} &, RotateRight@ DigitCount@ #]] &] (* Michael De Vlieger, Dec 12 2016 *)
CROSSREFS
KEYWORD
nonn,easy,base
AUTHOR
Paolo P. Lava, Nov 25 2016
STATUS
approved