OFFSET
1,2
COMMENTS
Equal to the disjoint union of A061013 and A011540 \ {0}. Contains in particular all positive single-digit integers, those with a digit 0, and 22*{1,...,18}. If x is in the sequence, any digit-permutation of x is also in the sequence. - M. F. Hasler, Feb 28 2018
LINKS
Iain Fox, Table of n, a(n) for n = 1..10000
MAPLE
isA038367 := proc(n)
true;
else
false;
end if;
end proc :
for n from 1 to 500 do
if isA038367(n) then
printf("%d, ", n) ;
end if;
end do: # R. J. Mathar, Jun 30 2020
MATHEMATICA
okQ[n_]:=Module[{idn=IntegerDigits[n]}, Divisible[Times@@idn, Total[idn]]]
Select[Range[500], okQ] (* Harvey P. Dale, Nov 24 2010 *)
PROG
(Magma) [0] cat [n: n in [1..250] | IsIntegral(&*Intseq(n)/&+Intseq(n))]; // Bruno Berselli, Feb 09 2016
(PARI) is(n)=n&&prod(i=1, #n=digits(n), n[i])%vecsum(n)==0 \\ M. F. Hasler, Feb 28 2018
CROSSREFS
KEYWORD
nonn,base,easy
AUTHOR
EXTENSIONS
Corrected by Vladeta Jovovic and Larry Reeves (larryr(AT)acm.org), Jun 08 2001
Erroneous 0 term removed by David A. Corneth, Jun 05 2016
STATUS
approved