|
|
A257221
|
|
Numbers that have at least one divisor containing the digit 4 in base 10.
|
|
8
|
|
|
4, 8, 12, 14, 16, 20, 24, 28, 32, 34, 36, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 52, 54, 56, 60, 64, 68, 70, 72, 74, 76, 80, 82, 84, 86, 88, 90, 92, 94, 96, 98, 100, 102, 104, 108, 112, 114, 116, 120, 123, 124, 126, 128, 129, 132, 134, 135, 136, 138, 140, 141
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,1
|
|
COMMENTS
|
|
|
LINKS
|
|
|
FORMULA
|
|
|
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)])))]
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn,base
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|