Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).
%I M4477 #25 Apr 03 2020 04:06:20
%S 0,1,3,8,10,11,13,18,30,31,33,38,80,81,83,88,100,101,103,108,110,111,
%T 113,118,130,131,133,138,180,181,183,188,300,301,303,308,310,311,313,
%U 318,330,331,333,338,380,381,383,388,800,801,803,808,810,811,813,818
%N Horizontally symmetric numbers.
%D N. J. A. Sloane and Simon Plouffe, The Encyclopedia of Integer Sequences, Academic Press, 1995 (includes this sequence).
%H Indranil Ghosh, <a href="/A007284/b007284.txt">Table of n, a(n) for n = 0..50000</a>
%F Numbers using only digits 0, 1, 3 and 8.
%o (Python)
%o allowed = ("0", "1", "3", "8")
%o def a(n):
%o return all(x in allowed for x in str(n))
%o print([i for i in range(50000) if a(i)])
%o # _Indranil Ghosh_, Feb 03 2017
%Y Cf. A046031.
%K nonn,easy,base
%O 0,3
%A _N. J. A. Sloane_.
%E More terms from _Henry Bottomley_, Feb 14 2000