OFFSET
1,2
COMMENTS
Subsequence of A209933 (numbers that are divisible by all digits of their divisors).
All divisors of numbers in this sequence are also in the sequence.
The primitive elements of this sequence are A116692. No member of this sequence is divisible by a prime outside this sequence. - Charles R Greathouse IV, Apr 17 2012
EXAMPLE
Number 48 with divisors 1, 2, 3, 4, 6, 8, 12, 16, 24, 48 is not in the sequence because 6 is not a divisor of 16.
PROG
(PARI) all(n)=my(v=vecsort(eval(Vec(Str(n))), , 8)); if(v[1]==0, return(0)); for(i=1, #v, if(n%v[i], return(0))); 1
is(n)=fordiv(n, d, if(!all(d), return(0))); 1 \\ Charles R Greathouse IV, Apr 17 2012
(Haskell)
import Data.List ((\\))
a182183 n = a182183_list !! (n-1)
a182183_list = f a209933_list [1] where
f (x:xs) ys =
if null (a027751_row x \\ ys) then x : f xs (x : ys) else f xs ys
-- Reinhard Zumkeller, Apr 19 2012
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Jaroslav Krizek, Apr 17 2012
EXTENSIONS
a(24)-a(31) from Charles R Greathouse IV, Apr 17 2012
STATUS
approved