cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A037390 Numbers k such that every base-4 digit of k is a base-8 digit of k.

This page as a plain text file.
%I A037390 #15 Aug 04 2021 02:21:47
%S A037390 1,2,3,10,42,64,65,66,67,68,69,80,85,86,90,93,95,106,128,129,130,131,
%T A037390 136,153,160,168,169,170,171,187,192,193,194,195,234,240,250,255,257,
%U A037390 321,514,522,528,529,530,531,532,533,534,538
%N A037390 Numbers k such that every base-4 digit of k is a base-8 digit of k.
%H A037390 Reinhard Zumkeller, <a href="/A037390/b037390.txt">Table of n, a(n) for n = 1..10000</a>
%o A037390 (Haskell)
%o A037390 import Data.List ((\\), nub)
%o A037390 a037390 n = a037390_list !! (n-1)
%o A037390 a037390_list = filter f [1..] where
%o A037390    f x = null $ nub (ds 4 x) \\ nub (ds 8 x)
%o A037390    ds b x = if x > 0 then d : ds b x' else []  where (x', d) = divMod x b
%o A037390 -- _Reinhard Zumkeller_, May 30 2013
%Y A037390 Cf. A007090, A007094.
%Y A037390 Cf. A037387, A037388, A037389, A037391, A037392.
%K A037390 nonn,base
%O A037390 1,2
%A A037390 _Clark Kimberling_