login
A062674
Composite and every divisor (except 1) contains the digit 6.
18
16043, 16409, 17621, 26569, 36661, 37637, 39467, 40267, 40669, 41663, 42869, 45761, 46297, 46421, 46909, 52643, 61289, 64721, 64789, 64843, 65209, 69169, 71623, 72361, 75469, 76121, 76987, 91769, 96521, 97661, 97963, 100367, 101369
OFFSET
1,1
LINKS
EXAMPLE
26569 has divisors 163 and 26569, all of which contain the digit 6.
MATHEMATICA
Select[Range[2, 102000], !PrimeQ[#]&&And@@(MemberQ[IntegerDigits[#], 6]&/@ Rest[Divisors[#]])&] (* Harvey P. Dale, May 26 2013 *)
fQ[n_, dgt_] := Union[ MemberQ[#, dgt] & /@ IntegerDigits@ Rest@ Divisors@ n][[1]]; Select[ Range[2, 101400], !PrimeQ[#] && fQ[#, 6] &] (* Robert G. Wilson v, Jun 11 2014 *)
KEYWORD
base,easy,nonn
AUTHOR
Erich Friedman, Jul 04 2001
EXTENSIONS
Offset corrected by Amiram Eldar, Nov 07 2019
STATUS
approved