The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
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!)
A299868 The sum of the first n terms of the sequence is the concatenation of the first n digits of the sequence, and a(1) = 5. 2
5, 50, 495, 4954, 49545, 495446, 4954459, 49544595, 495445946, 4954459459, 49544594590, 495445945905, 4954459459046, 49544594590459, 495445945904591, 4954459459045909, 49544594590459095, 495445945904590946, 4954459459045909459, 49544594590459094590, 495445945904590945902, 4954459459045909459018 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
COMMENTS
The sequence starts with a(1) = 5 and is always extended with the smallest integer not yet present in the sequence and not leading to a contradiction.
LINKS
FORMULA
a(n) = c(n) - c(n-1), where c(n) = concatenation of the first n digits, c(n) ~ 0.55*10^n, a(n) ~ 0.495*10^n. See A300000 for the proof. - M. F. Hasler, Feb 22 2018
EXAMPLE
5 + 50 = 55 which is the concatenation of 5 and 5.
5 + 50 + 495 = 550 which is the concatenation of 5, 5 and 0.
5 + 50 + 495 + 4954 = 5504 which is the concatenation of 5, 5, 0 and 4.
From n = 3 on, a(n) can be computed directly as c(n) - c(n-1), cf. formula: a(3) = 550 - 55 = 495, a(4) = 5504 - 550 = 4954, etc. - M. F. Hasler, Feb 22 2018
PROG
(PARI) a(n, show=1, a=5, c=a, d=[a])={for(n=2, n, show&&print1(a", "); a=-c+c=c*10+d[1]; d=concat(d[^1], if(n>2, digits(a)))); a} \\ M. F. Hasler, Feb 22 2018
CROSSREFS
A300000 is the lexicographically first sequence of this type, with a(1) = 1.
Cf. A299865, ..., A299872 for variants with a(1) = 2, ..., 9.
Sequence in context: A361555 A266028 A228751 * A136915 A136918 A136910
KEYWORD
nonn,base
AUTHOR
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 June 1 03:43 EDT 2024. Contains 373008 sequences. (Running on oeis4.)