OFFSET
1,2
COMMENTS
First composite term is 121. All powers of 11 are in the sequence. - Alonso del Arte, Sep 29 2013
LINKS
Reinhard Zumkeller, Table of n, a(n) for n = 1..10000
EXAMPLE
143 has divisors 1, 11, 13 and 143, all of which contain the digit 1.
MAPLE
q:= n-> andmap(x-> 1 in convert(x, base, 10), numtheory[divisors](n)):
select(q, [$1..1000])[]; # Alois P. Heinz, May 09 2022
MATHEMATICA
fQ[n_, dgt_] := Union[ MemberQ[#, dgt] & /@ IntegerDigits@ Rest@ Divisors@ n][[1]]; Select[ Range[2, 525], fQ[#, 1] &] (* Robert G. Wilson v, Jun 11 2014 *)
PROG
(Haskell)
a062634 n = a062634_list !! (n-1)
a062634_list = filter
(and . map ((elem '1') . show) . a027750_row) a011531_list
-- Reinhard Zumkeller, Feb 05 2012
(PARI) isok(m) = fordiv(m, d, if (! #select(x->(x==1), digits(d)), return(0))); return(1); \\ Michel Marcus, May 09 2022
CROSSREFS
KEYWORD
nonn,base,easy
AUTHOR
Erich Friedman, Jul 04 2001
EXTENSIONS
Offset corrected by Reinhard Zumkeller, Feb 05 2012
STATUS
approved