|
|
A257223
|
|
Numbers that have at least one divisor containing the digit 6 in base 10.
|
|
7
|
|
|
6, 12, 16, 18, 24, 26, 30, 32, 36, 42, 46, 48, 52, 54, 56, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 72, 76, 78, 80, 84, 86, 90, 92, 96, 102, 104, 106, 108, 112, 114, 116, 120, 122, 124, 126, 128, 130, 132, 134, 136, 138, 144, 146, 150, 152, 156, 160, 161, 162
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,1
|
|
COMMENTS
|
|
|
LINKS
|
|
|
FORMULA
|
a(n) ~ n.
|
|
EXAMPLE
|
18 is in sequence because the list of divisors of 18: (1, 2, 3, 6, 9, 18) contains digit 6.
|
|
MATHEMATICA
|
Select[Range@108, Part[Plus @@ DigitCount@ Divisors@ #, 6] > 0 &]
Select[Range[200], Count[Flatten[IntegerDigits/@Divisors[#]], 6]>0&] (* Harvey P. Dale, Nov 05 2021 *)
|
|
PROG
|
(Magma) [n: n in [1..1000] | [6] subset Setseq(Set(Sort(&cat[Intseq(d): d in Divisors(n)])))]
(PARI) is(n)=fordiv(n, d, if(setsearch(Set(digits(d)), 6), return(1))); 0
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn,base
|
|
AUTHOR
|
|
|
EXTENSIONS
|
|
|
STATUS
|
approved
|
|
|
|