The OEIS Foundation is supported by donations from users of the OEIS and by a grant from the Simons Foundation.

 Hints (Greetings from The On-Line Encyclopedia of Integer Sequences!)
 A037397 Every base 5 digit of n is a base 10 digit of n. 6

%I

%S 1,2,3,4,12,24,31,62,93,104,124,130,150,156,162,174,182,213,250,260,

%T 281,302,312,324,342,390,473,493,504,604,624,781,812,831,912,1003,

%U 1030,1031,1032,1033,1034,1043,1083,1093,1174,1234,1243

%N Every base 5 digit of n is a base 10 digit of n.

%H Reinhard Zumkeller, <a href="/A037397/b037397.txt">Table of n, a(n) for n = 1..10000</a>

%o import Data.List ((\\), nub)

%o a037397 n = a037397_list !! (n-1)

%o a037397_list = filter f [1..] where

%o f x = null \$ nub (ds 5 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. A037393, A037394, A037395, A037396.

%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 | Recent
The OEIS Community | Maintained by The OEIS Foundation Inc.

Last modified September 26 05:00 EDT 2020. Contains 337346 sequences. (Running on oeis4.)