|
|
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
|
|
|
FORMULA
|
Numbers using only digits 0, 1, 3 and 8.
|
|
PROG
|
(Python)
allowed = ("0", "1", "3", "8")
def a(n):
return all(x in allowed for x in str(n))
print([i for i in range(50000) if a(i)])
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn,easy,base
|
|
AUTHOR
|
|
|
EXTENSIONS
|
|
|
STATUS
|
approved
|
|
|
|