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.

A037386 Every base 3 digit of n is a base 10 digit of n.

This page as a plain text file.
%I A037386 #7 May 30 2013 17:41:22
%S A037386 1,2,10,13,20,26,102,108,109,120,121,122,124,125,152,201,210,211,212,
%T A037386 214,215,240,241,242,702,720,728,810,1000,1002,1003,1008,1009,1011,
%U A037386 1012,1020,1021,1022,1023,1024,1025,1026,1027,1028
%N A037386 Every base 3 digit of n is a base 10 digit of n.
%H A037386 Reinhard Zumkeller, <a href="/A037386/b037386.txt">Table of n, a(n) for n = 1..10000</a>
%o A037386 (Haskell)
%o A037386 import Data.List ((\\), nub)
%o A037386 a037386 n = a037386_list !! (n-1)
%o A037386 a037386_list = filter f [1..] where
%o A037386    f x = null $ nub (ds 3 x) \\ nub (ds 10 x)
%o A037386    ds b x = if x > 0 then d : ds b x' else []  where (x', d) = divMod x b
%o A037386 -- _Reinhard Zumkeller_, May 30 2013
%Y A037386 Cf. A037380, A037381, A037382, A037383, A037384, A037385.
%K A037386 nonn,base
%O A037386 1,2
%A A037386 _Clark Kimberling_