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.

A037398 Numbers k such that every base-6 digit of k is a base-7 digit of k.

This page as a plain text file.
%I A037398 #15 Aug 05 2021 07:00:45
%S A037398 1,2,3,4,5,7,14,21,28,35,43,68,79,86,122,123,129,165,172,208,215,246,
%T A037398 252,260,361,373,397,425,427,431,444,445,446,469,475,476,479,481,482,
%U A037398 504,513,520,527,556,562,583,625,696,738,756
%N A037398 Numbers k such that every base-6 digit of k is a base-7 digit of k.
%H A037398 Reinhard Zumkeller, <a href="/A037398/b037398.txt">Table of n, a(n) for n = 1..10000</a>
%o A037398 (Haskell)
%o A037398 import Data.List ((\\), nub)
%o A037398 a037398 n = a037398_list !! (n-1)
%o A037398 a037398_list = filter f [1..] where
%o A037398    f x = null $ nub (ds 6 x) \\ nub (ds 7 x)
%o A037398    ds b x = if x > 0 then d : ds b x' else []  where (x', d) = divMod x b
%o A037398 -- _Reinhard Zumkeller_, May 30 2013
%Y A037398 Cf. A007092, A007093.
%Y A037398 Cf. A037399, A037400, A037401.
%K A037398 nonn,base
%O A037398 1,2
%A A037398 _Clark Kimberling_