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!)
A037374 Positive numbers k such that every base-2 digit of k is a base-5 digit of k. 8

%I #13 Apr 13 2021 23:05:25

%S 1,5,7,25,26,27,28,29,30,31,35,40,45,51,55,76,80,101,105,125,126,127,

%T 128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,

%U 145,146,147,148,149,150,151,152,153,154,155

%N Positive numbers k such that every base-2 digit of k is a base-5 digit of k.

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

%o (Haskell)

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

%o a037374 n = a037374_list !! (n-1)

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

%o f x = null $ nub (ds 2 x) \\ nub (ds 5 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. A037372, A037373, A037375, A037376, A037377, A037378, A037379.

%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 16 12:52 EDT 2024. Contains 371711 sequences. (Running on oeis4.)