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!)
A037392 Every base 4 digit of n is a base 10 digit of n. 7

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

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 23 16:40 EDT 2024. Contains 371916 sequences. (Running on oeis4.)