login
The OEIS Foundation is supported by donations from users of the OEIS and by a grant from the Simons Foundation.

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A007284 Horizontally symmetric numbers.
(Formerly M4477)
4
0, 1, 3, 8, 10, 11, 13, 18, 30, 31, 33, 38, 80, 81, 83, 88, 100, 101, 103, 108, 110, 111, 113, 118, 130, 131, 133, 138, 180, 181, 183, 188, 300, 301, 303, 308, 310, 311, 313, 318, 330, 331, 333, 338, 380, 381, 383, 388, 800, 801, 803, 808, 810, 811, 813, 818 (list; graph; refs; listen; history; text; internal format)
OFFSET

0,3

REFERENCES

N. J. A. Sloane and Simon Plouffe, The Encyclopedia of Integer Sequences, Academic Press, 1995 (includes this sequence).

LINKS

Indranil Ghosh, Table of n, a(n) for n = 0..50000

FORMULA

Numbers using only digits 0, 1, 3 and 8.

PROG

(PARI) \Same numbers flipped over flipover(n) = { local(flag, x, j, sx, v, d); for(x=0, n, sx = Str(x); v = Vec(sx); for(j=1, length(sx), d = v[j]; if(d=="0"||d=="1"||d=="3"||d=="8", flag=1, flag=0; break); ); if(flag, print1(x", ")) ) } (Cino Hilliard)

(Python)

def a(n):

....x=str(n)

....for i in x:

........if not i in ["0", "1", "3", "8"]:

............return False

....return True

i=0

j=0

while j<=50000:

....if a(i)==True:

........print str(j)+" "+str(i)

........j+=1

....i+=1 # Indranil Ghosh, Feb 03 2017

CROSSREFS

Cf. A046031.

Sequence in context: A127518 A176118 A151693 * A080892 A177091 A246589

Adjacent sequences:  A007281 A007282 A007283 * A007285 A007286 A007287

KEYWORD

nonn,easy,base

AUTHOR

N. J. A. Sloane.

EXTENSIONS

More terms from Henry Bottomley, Feb 14 2000

STATUS

approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recent
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified February 16 21:46 EST 2020. Contains 331975 sequences. (Running on oeis4.)