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
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
KEYWORD
nonn,base,easy
AUTHOR
STATUS
approved