login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A037400 Numbers k such that every base-6 digit of k is a base-9 digit of k. 4

%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_

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 24 14:13 EDT 2024. Contains 371960 sequences. (Running on oeis4.)