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

%I #14 Apr 13 2021 23:36:39

%S 1,8,15,64,65,66,67,68,69,70,71,72,80,88,96,104,112,120,127,129,136,

%T 193,200,257,264,321,328,385,392,449,456,512,513,514,515,516,517,518,

%U 519,520,521,522,523,524,525,526,527,528,529,530

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

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

%o (Haskell)

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

%o a037377 n = a037377_list !! (n-1)

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

%o f x = null $ nub (ds 2 x) \\ nub (ds 8 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, A037374, A037375, A037376, 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 18 11:52 EDT 2024. Contains 371779 sequences. (Running on oeis4.)