Reminder: The OEIS is hiring a new managing editor, and the application deadline is January 26.
%I #17 Aug 05 2021 07:37:00
%S 1,2,3,4,5,21,104,108,115,129,194,212,215,252,259,271,280,352,370,388,
%T 417,504,651,756,757,758,759,760,761,762,763,777,913,922,928,932,949,
%U 976,994,1008,1015,1030,1076,1137,1147,1151,1152
%N Numbers k such that every base-6 digit of k is a base-9 digit of k.
%H Reinhard Zumkeller, <a href="/A037400/b037400.txt">Table of n, a(n) for n = 1..10000</a>
%o (Haskell)
%o import Data.List ((\\), nub)
%o a037400 n = a037400_list !! (n-1)
%o a037400_list = filter f [1..] where
%o f x = null $ nub (ds 6 x) \\ nub (ds 9 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. A007092, A007095.
%Y Cf. A037398, A037399, A037401.
%K nonn,base
%O 1,2
%A _Clark Kimberling_