OFFSET
1,2
LINKS
Nathaniel Johnston, Table of n, a(n) for n = 1..1000
EXAMPLE
Number 112 is in sequence because all divisors of 112 (1, 2, 4, 7, 8, 14, 16, 28, 56, 112) are numbers whose decimal digits are in nondecreasing order.
MAPLE
with(numtheory): A190221 := proc(n) option remember: local d, dd, i, j, k, m, poten: if(n=1)then return 1: fi: for k from procname(n-1)+1 do d:=divisors(k): poten:=1: for i from 1 to nops(d) do m:=10: dd:=convert(d[i], base, 10): for j from 1 to nops(dd) do if(m>=dd[j])then m:=dd[j]: else poten:=0: break: fi: od: if(poten=0)then break:fi: od: if(poten=1)then return k: fi: od: end: seq(A190221(n), n=1..64); # Nathaniel Johnston, May 06 2011
MATHEMATICA
ndoQ[n_]:=Min[Differences[IntegerDigits[n]]]>=0; Select[Range[ 200], AllTrue[ Divisors[#], ndoQ]&] (* Requires Mathematica version 10 or later *) (* Harvey P. Dale, Jun 02 2021 *)
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Jaroslav Krizek, May 06 2011
STATUS
approved