OFFSET
1,1
LINKS
Amiram Eldar, Table of n, a(n) for n = 1..10000
EXAMPLE
1849 has divisors 1, 43 and 1849, the last two of which contain the digit 4.
MATHEMATICA
fQ[n_, dgt_] := Union[ MemberQ[#, dgt] & /@ IntegerDigits@ Rest@ Divisors@ n][[1]]; Select[ Range[2, 1500], fQ[#, 4] &] (* Robert G. Wilson v, Jun 11 2014 *)
Select[Range[2, 1500], AllTrue[Rest[Divisors[#]], DigitCount[#, 10, 4]>0&]&] (* Requires Mathematica version 10 or later *) (* Harvey P. Dale, Jun 05 2021 *)
PROG
(Magma) [k:k in [2..1500]| forall{d:d in Set(Divisors(k)) diff {1}| 4 in Intseq(d)}]; // Marius A. Burtea, Nov 07 2019
CROSSREFS
KEYWORD
base,easy,nonn
AUTHOR
Erich Friedman, Jul 04 2001
EXTENSIONS
Offset corrected by Amiram Eldar, Nov 07 2019
Example corrected by Harvey P. Dale, Jun 05 2021
STATUS
approved