OFFSET
1,2
COMMENTS
All primes containing the digit 1 are terms.
LINKS
Amiram Eldar, Table of n, a(n) for n = 1..10000
EXAMPLE
131 is a term. 143 is also a term with divisors 1,11,13,143.
MAPLE
isA092912 := proc(n) local digs, divs, d, i, j ; digs := convert(n, base, 10) ; divs := numtheory[divisors](n) ; for i from 1 to nops(divs) do d := convert(op(i, divs), base, 10) ; for j in d do if not j in digs then RETURN(false) ; fi ; od ; od ; RETURN(true) ; end: for n from 1 to 700 do if isA092912(n) then printf("%d, ", n) ; fi ; od ; # R. J. Mathar, Jul 26 2007
MATHEMATICA
Do[a = IntegerDigits[n]; b = Union @@ IntegerDigits[Divisors[n]]; If[Intersection[a, b] == b, Print[n]], {n, 1, 200}] (* Ryan Propper, Jul 19 2005 *)
PROG
(PARI) is_A092912(n)=!setminus(Set(concat(apply(digits, divisors(n)))), Set(digits(n))) \\ M. F. Hasler, Mar 09 2014
CROSSREFS
KEYWORD
base,nonn
AUTHOR
Amarnath Murthy, Mar 14 2004
EXTENSIONS
Corrected and extended by Ryan Propper, Jul 19 2005
More terms from R. J. Mathar, Jul 26 2007
STATUS
approved