login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A217394 Numbers starting with 2. 14
2, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
COMMENTS
The lower and upper asymptotic densities of this sequence are 1/18 and 10/27, respectively. - Amiram Eldar, Feb 27 2021
LINKS
FORMULA
a(n) = n + (17*10^floor(log_10(9*n-8))-8)/9. - Alan Michael Gómez Calderón, May 15 2023
MATHEMATICA
Select[Range[300], IntegerDigits[#][[1]] == 2 &] (* T. D. Noe, Oct 02 2012 *)
PROG
(Python)
def agen():
yield 2
digits, adder = 1, 20
while True:
for i in range(10**digits): yield adder + i
digits, adder = digits+1, adder*10
g = agen()
print([next(g) for i in range(54)]) # Michael S. Branicky, Feb 20 2021
CROSSREFS
Subsequences include: A045708, A045726, A077327, A077678, A106412, A106422.
Sequence in context: A278938 A303157 A338994 * A072998 A024629 A235500
KEYWORD
nonn,base,easy
AUTHOR
Jeremy Gardiner, Oct 02 2012
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified May 1 03:06 EDT 2024. Contains 372148 sequences. (Running on oeis4.)