OFFSET
1,1
COMMENTS
The lower and upper asymptotic densities of this sequence are 1/11 and 10/11, respectively. - Amiram Eldar, Feb 01 2021
LINKS
T. D. Noe, Table of n, a(n) for n = 1..1000
FORMULA
A055642(a(n)) mod 2 = 0. - Reinhard Zumkeller, Jul 14 2014
a(n) = n + (100^floor(log_100(110*n)) - 1)/11. - Kevin Ryde, Nov 10 2022
MATHEMATICA
Select[Range[0, 1001], EvenQ[Length[IntegerDigits[#]]] &] (* T. D. Noe, Aug 09 2012 *)
PROG
(Haskell)
a001637 n = a001637_list !! (n-1)
a001637_list = filter (even . a055642) [0..]
-- Reinhard Zumkeller, Jul 14 2014
(PARI) is(n)=#Str(n)%2==0 \\ Charles R Greathouse IV, Nov 26 2018
(PARI) a(n) = n + 100^logint(110*n, 100) \ 11; \\ Kevin Ryde, Nov 10 2022
(Python)
def a(n): return n + (100**((len(str(110*n))-1)//2) - 1)//11
print([a(n) for n in range(1, 100)]) # Michael S. Branicky, Nov 10 2022 after Kevin Ryde
CROSSREFS
KEYWORD
nonn,base,easy
AUTHOR
STATUS
approved