OFFSET
1,1
COMMENTS
The lower and upper asymptotic densities of this sequence are 1/45 and 5/27, respectively. - Amiram Eldar, Feb 27 2021
LINKS
Jeremy Gardiner, Table of n, a(n) for n = 1..1111
FORMULA
a(n) = n + (44*10^floor(log_10(9*n-8))-8)/9. - Alan Michael Gómez Calderón, May 17 2023
MATHEMATICA
Select[Range[1000], IntegerDigits[#][[1]] == 5 &] (* T. D. Noe, Oct 02 2012 *)
PROG
(Haskell)
a217398 n = a217398_list !! (n-1)
a217398_list = filter ((== 5) . a000030) [1..]
-- Reinhard Zumkeller, Mar 13 2014
CROSSREFS
KEYWORD
nonn,base,easy
AUTHOR
Jeremy Gardiner, Oct 02 2012
STATUS
approved