Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).
%I #8 May 30 2013 17:43:07
%S 1,2,3,13,21,31,42,63,102,123,203,213,231,234,235,238,239,341,351,381,
%T 421,520,682,1013,1023,1024,1025,1026,1028,1029,1031,1032,1036,1037,
%U 1039,1040,1041,1042,1043,1044,1045,1053,1062
%N Every base 4 digit of n is a base 10 digit of n.
%H Reinhard Zumkeller, <a href="/A037392/b037392.txt">Table of n, a(n) for n = 1..10000</a>
%o (Haskell)
%o import Data.List ((\\), nub)
%o a037392 n = a037392_list !! (n-1)
%o a037392_list = filter f [1..] where
%o f x = null $ nub (ds 4 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. A037387, A037388, A037389, A037390, A037391.
%K nonn,base
%O 1,2
%A _Clark Kimberling_