OFFSET
1,1
LINKS
Enrique Pérez Herrero, Table of n, a(n) for n = 1..2000
MATHEMATICA
Select[Range[300], DigitCount[#, 10, 8]==1&] (* Harvey P. Dale, Jan 06 2012 *)
PROG
(PARI) is(n)=my(d=digits(n)); sum(i=1, #d, d[i]==8)==1 \\ Charles R Greathouse IV, Feb 12 2017
(Python)
def ok(n): return str(n).count('8') == 1
print(list(filter(ok, range(320)))) # Michael S. Branicky, Aug 18 2021
CROSSREFS
KEYWORD
nonn,base,easy
AUTHOR
STATUS
approved