login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A043525
Numbers having one 9 in base 10.
11
9, 19, 29, 39, 49, 59, 69, 79, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 109, 119, 129, 139, 149, 159, 169, 179, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 209, 219, 229, 239, 249, 259, 269, 279, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 309, 319
OFFSET
1,1
FORMULA
Sum_{n>=1} 1/a(n) = A140502. - Amiram Eldar, Nov 14 2020
MATHEMATICA
Select[Range[300], DigitCount[#, 10, 9]==1&] (* Harvey P. Dale, Jan 19 2013 *)
PROG
(Python)
def ok(n): return str(n).count('9') == 1
print(list(filter(ok, range(320)))) # Michael S. Branicky, Sep 19 2021
CROSSREFS
KEYWORD
nonn,base
STATUS
approved