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.

A037404 Numbers k such that every base-7 digit of k is a base-10 digit of k.

This page as a plain text file.
%I A037404 #10 Aug 22 2021 09:22:12
%S A037404 1,2,3,4,5,6,23,46,214,250,265,285,316,421,702,1030,1032,1036,1037,
%T A037404 1039,1053,1234,1243,1336,1366,1368,1400,1401,1402,1403,1404,1405,
%U A037404 1406,1429,1431,1432,1443,1450,1453,1454,1457,1464
%N A037404 Numbers k such that every base-7 digit of k is a base-10 digit of k.
%H A037404 Reinhard Zumkeller, <a href="/A037404/b037404.txt">Table of n, a(n) for n = 1..10000</a>
%o A037404 (Haskell)
%o A037404 import Data.List ((\\), nub)
%o A037404 a037404 n = a037404_list !! (n-1)
%o A037404 a037404_list = filter f [1..] where
%o A037404    f x = null $ nub (ds 7 x) \\ nub (ds 10 x)
%o A037404    ds b x = if x > 0 then d : ds b x' else []  where (x', d) = divMod x b
%o A037404 -- _Reinhard Zumkeller_, May 30 2013
%Y A037404 Cf. A037402, A037403.
%K A037404 nonn,base
%O A037404 1,2
%A A037404 _Clark Kimberling_