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!)
A217395 Numbers starting with 3. 11
3, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
COMMENTS
The lower and upper asymptotic densities of this sequence are 1/27 and 5/18, respectively. - Amiram Eldar, Feb 27 2021
LINKS
FORMULA
a(n) = n + (26*10^floor(log_10(9*n-8))-8)/9. - Alan Michael Gómez Calderón, May 16 2023
MATHEMATICA
Select[Range[1000], IntegerDigits[#][[1]] == 3 &] (* T. D. Noe, Oct 02 2012 *)
PROG
(Python)
def agen():
yield 3
digits, adder = 1, 30
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, Mar 30 2021
(PARI) a(n) = n + 26*10^logint(9*n, 10)\9; \\ Kevin Ryde, Mar 30 2021
CROSSREFS
Subsequences include: A045709, A077328, A077679, A106413, A106423.
Sequence in context: A186681 A295430 A344430 * A077679 A045863 A121023
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 April 24 00:30 EDT 2024. Contains 371917 sequences. (Running on oeis4.)