%I #7 May 30 2013 17:41:22
%S 1,2,10,13,20,26,102,108,109,120,121,122,124,125,152,201,210,211,212,
%T 214,215,240,241,242,702,720,728,810,1000,1002,1003,1008,1009,1011,
%U 1012,1020,1021,1022,1023,1024,1025,1026,1027,1028
%N Every base 3 digit of n is a base 10 digit of n.
%H Reinhard Zumkeller, <a href="/A037386/b037386.txt">Table of n, a(n) for n = 1..10000</a>
%o (Haskell)
%o import Data.List ((\\), nub)
%o a037386 n = a037386_list !! (n-1)
%o a037386_list = filter f [1..] where
%o f x = null $ nub (ds 3 x) \\ nub (ds 10 x)
%o ds b x = if x > 0 then d : ds b x' else [] where (x', d) = divMod x b
%o -- _Reinhard Zumkeller_, May 30 2013
%Y Cf. A037380, A037381, A037382, A037383, A037384, A037385.
%K nonn,base
%O 1,2
%A _Clark Kimberling_