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.
%I A037381 #15 Jul 30 2021 04:37:42 %S A037381 1,2,7,27,28,30,35,40,51,54,55,60,71,121,127,132,135,136,137,138,139, %T A037381 142,147,152,157,160,161,175,176,177,178,179,180,185,190,195,202,210, %U A037381 211,212,214,227,232,235,238,239,242,251,255 %N A037381 Numbers k such that every base-3 digit of k is a base-5 digit of k. %H A037381 Reinhard Zumkeller, <a href="/A037381/b037381.txt">Table of n, a(n) for n = 1..10000</a> %t A037381 Select[Range[300],SubsetQ[IntegerDigits[#,5],IntegerDigits[#,3]]&] (* _Harvey P. Dale_, Dec 31 2017 *) %o A037381 (Haskell) %o A037381 import Data.List ((\\), nub) %o A037381 a037381 n = a037381_list !! (n-1) %o A037381 a037381_list = filter f [1..] where %o A037381 f x = null $ nub (ds 3 x) \\ nub (ds 5 x) %o A037381 ds b x = if x > 0 then d : ds b x' else [] where (x', d) = divMod x b %o A037381 -- _Reinhard Zumkeller_, May 30 2013 %Y A037381 Cf. A007089, A007091. %Y A037381 Cf. A037380, A037382, A037383, A037384, A037385, A037386. %K A037381 nonn,base %O A037381 1,2 %A A037381 _Clark Kimberling_