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.

A037396 Numbers k such that every base-5 digit of k is a base-9 digit of k.

This page as a plain text file.
%I A037396 #16 Aug 05 2021 07:00:30
%S A037396 1,2,3,4,11,22,93,121,124,126,156,181,199,317,362,598,750,751,752,755,
%T A037396 756,758,768,770,771,775,776,780,781,785,796,812,831,841,843,849,859,
%U A037396 895,900,906,907,911,912,918,922,927,931,932
%N A037396 Numbers k such that every base-5 digit of k is a base-9 digit of k.
%H A037396 Reinhard Zumkeller, <a href="/A037396/b037396.txt">Table of n, a(n) for n = 1..10000</a>
%o A037396 (Haskell)
%o A037396 import Data.List ((\\), nub)
%o A037396 a037396 n = a037396_list !! (n-1)
%o A037396 a037396_list = filter f [1..] where
%o A037396    f x = null $ nub (ds 5 x) \\ nub (ds 9 x)
%o A037396    ds b x = if x > 0 then d : ds b x' else []  where (x', d) = divMod x b
%o A037396 -- _Reinhard Zumkeller_, May 30 2013
%o A037396 (PARI) is(n)=#setminus(Set(digits(n,5)), Set(digits(n,9)))==0 \\ _Charles R Greathouse IV_, Feb 11 2017
%Y A037396 Cf. A007091, A007095.
%Y A037396 Cf. A037393, A037394, A037395, A037397.
%K A037396 nonn,base
%O A037396 1,2
%A A037396 _Clark Kimberling_