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.

A037400 Numbers k such that every base-6 digit of k is a base-9 digit of k.

This page as a plain text file.
%I A037400 #17 Aug 05 2021 07:37:00
%S A037400 1,2,3,4,5,21,104,108,115,129,194,212,215,252,259,271,280,352,370,388,
%T A037400 417,504,651,756,757,758,759,760,761,762,763,777,913,922,928,932,949,
%U A037400 976,994,1008,1015,1030,1076,1137,1147,1151,1152
%N A037400 Numbers k such that every base-6 digit of k is a base-9 digit of k.
%H A037400 Reinhard Zumkeller, <a href="/A037400/b037400.txt">Table of n, a(n) for n = 1..10000</a>
%o A037400 (Haskell)
%o A037400 import Data.List ((\\), nub)
%o A037400 a037400 n = a037400_list !! (n-1)
%o A037400 a037400_list = filter f [1..] where
%o A037400    f x = null $ nub (ds 6 x) \\ nub (ds 9 x)
%o A037400    ds b x = if x > 0 then d : ds b x' else []  where (x', d) = divMod x b
%o A037400 -- _Reinhard Zumkeller_, May 30 2013
%Y A037400 Cf. A007092, A007095.
%Y A037400 Cf. A037398, A037399, A037401.
%K A037400 nonn,base
%O A037400 1,2
%A A037400 _Clark Kimberling_