OFFSET
1,2
PROG
(ARIBAS): function a049106(a, b: integer); var n, k, j, p, r, d: integer; s: string; begin for n := a to b do s := itoa(n); k := 0; p := 1; for j := 0 to length(s) - 1 do d := atoi(s[j..j]); k : = k + d; p := p*d; end; r := p*k; if r > 0 then if n mod r = 0 then write(n div r, ", "); end; end; end; end; a049106(0, 1220000).
CROSSREFS
KEYWORD
nonn,base
AUTHOR
EXTENSIONS
More terms from Klaus Brockhaus, Dec 13 2001
STATUS
approved