OFFSET
1,1
COMMENTS
LINKS
Charles R Greathouse IV, Table of n, a(n) for n = 1..10000
FORMULA
a(n) ~ n. - Charles R Greathouse IV, Apr 30 2015
EXAMPLE
16 is in sequence because the list of divisors of 16: (1, 2, 4, 8, 16) contains digit 4.
MATHEMATICA
Select[Range@ 141, Part[Plus @@ DigitCount@ Divisors@ #, 4] > 0 &] (* Michael De Vlieger, Apr 20 2015 *)
Select[Range[200], Count[Flatten[IntegerDigits/@Divisors[#]], 4]>0&] (* Harvey P. Dale, May 05 2022 *)
PROG
(Magma) [n: n in [1..1000] | [4] subset Setseq(Set(Sort(&cat[Intseq(d): d in Divisors(n)])))]
(PARI) is(n)=fordiv(n, d, if(setsearch(Set(digits(d)), 4), return(1))); 0 \\ Charles R Greathouse IV, Apr 30 2015
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Jaroslav Krizek, Apr 20 2015
STATUS
approved