login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A011538 Numbers that contain an 8. 33

%I #22 Sep 08 2022 08:44:37

%S 8,18,28,38,48,58,68,78,80,81,82,83,84,85,86,87,88,89,98,108,118,128,

%T 138,148,158,168,178,180,181,182,183,184,185,186,187,188,189,198,208,

%U 218,228,238,248,258,268,278,280,281,282,283,284,285,286,287,288,289

%N Numbers that contain an 8.

%C 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

%H Vincenzo Librandi, <a href="/A011538/b011538.txt">Table of n, a(n) for n = 1..3439</a>

%H <a href="/index/Ar#10-automatic">Index entries for 10-automatic sequences</a>.

%F a(n) ~ n. - _Charles R Greathouse IV_, Aug 28 2012

%t Select[Range[400], DigitCount[#, 10, 8]>0 &] (* _Vincenzo Librandi_, Feb 15 2017 *)

%o (PARI) is(n)=!!setsearch(Set(digits(n)), 8) \\ _Charles R Greathouse IV_, Feb 12 2017

%o (Magma) [n: n in [0..400] | 8 in Intseq(n) ]; // _Vincenzo Librandi_, Feb 15 2017

%o (GAP) Filtered([1..290],n->8 in ListOfDigits(n)); # _Muniru A Asiru_, Feb 24 2019

%o (Python)

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

%o print(list(filter(ok, range(290)))) # _Michael S. Branicky_, Aug 18 2021

%Y Supersequence of A043521.

%K nonn,base,easy

%O 1,1

%A _N. J. A. Sloane_.

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

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 19 16:03 EDT 2024. Contains 371794 sequences. (Running on oeis4.)