%I #13 Apr 13 2021 23:30:14
%S 1,3,7,9,10,11,12,15,19,21,27,28,29,30,31,32,33,34,35,36,37,38,39,42,
%T 45,46,47,48,51,55,57,58,59,61,63,64,65,66,69,73,75,81,82,83,84,85,86,
%U 87,88,89,90,91,92,93,94,95,96,97,98,99,100,101
%N Positive numbers k such that every base-2 digit of k is a base-3 digit of k.
%H Reinhard Zumkeller, <a href="/A037372/b037372.txt">Table of n, a(n) for n = 1..10000</a>
%o (Haskell)
%o import Data.List ((\\), nub)
%o a037372 n = a037372_list !! (n-1)
%o a037372_list = filter f [1..] where
%o f x = null $ nub (ds 2 x) \\ nub (ds 3 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. A037373, A037374, A037375, A037376, A037377, A037378, A037379.
%K nonn,base
%O 1,2
%A _Clark Kimberling_