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!)
A011538 Numbers that contain an 8. 32
8, 18, 28, 38, 48, 58, 68, 78, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 98, 108, 118, 128, 138, 148, 158, 168, 178, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 198, 208, 218, 228, 238, 248, 258, 268, 278, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289 (list; graph; refs; listen; history; text; internal format)
OFFSET

1,1

COMMENTS

In China, numbers with many 8 digits are considered auspicious because the character for 8 (八) sounds like the character for wealth (發). - Charles R Greathouse IV, Aug 28 2012

LINKS

Vincenzo Librandi, Table of n, a(n) for n = 1..3439

Index entries for 10-automatic sequences.

FORMULA

a(n) ~ n. - Charles R Greathouse IV, Aug 28 2012

MATHEMATICA

Select[Range[400], DigitCount[#, 10, 8]>0 &] (* Vincenzo Librandi, Feb 15 2017 *)

PROG

(PARI) is(n)=!!setsearch(Set(digits(n)), 8) \\ Charles R Greathouse IV, Feb 12 2017

(MAGMA) [n: n in [0..400] | 8 in Intseq(n) ]; // Vincenzo Librandi, Feb 15 2017

(GAP) Filtered([1..290], n->8 in ListOfDigits(n)); # Muniru A Asiru, Feb 24 2019

(Python)

def ok(n): return '8' in str(n)

print(list(filter(ok, range(290)))) # Michael S. Branicky, Aug 18 2021

CROSSREFS

Supersequence of A043521.

Sequence in context: A347640 A347995 A248015 * A283611 A043521 A277595

Adjacent sequences:  A011535 A011536 A011537 * A011539 A011540 A011541

KEYWORD

nonn,base,easy

AUTHOR

N. J. A. Sloane.

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 October 22 13:49 EDT 2021. Contains 348170 sequences. (Running on oeis4.)