OFFSET
1,2
LINKS
Reinhard Zumkeller, Table of n, a(n) for n = 1..10000
MATHEMATICA
Select[Range[300], SubsetQ[IntegerDigits[#, 5], IntegerDigits[#, 4]]&] (* Harvey P. Dale, Mar 27 2019 *)
PROG
(Haskell)
import Data.List ((\\), nub)
a037387 n = a037387_list !! (n-1)
a037387_list = filter f [1..] where
f x = null $ nub (ds 4 x) \\ nub (ds 5 x)
ds b x = if x > 0 then d : ds b x' else [] where (x', d) = divMod x b
-- Reinhard Zumkeller, May 30 2013
CROSSREFS
KEYWORD
nonn,base
AUTHOR
STATUS
approved