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!)
A322424 Start with (1, 2, 3, 4); when the sequence has n terms, extend it by appending a(n) copies of a(1..n-1). (Cf. "Look to the left" sequence A293630.) 5
1, 2, 3, 4, 1, 2, 3, 1, 2, 3, 1, 2, 3, 1, 2, 3, 1, 2, 3, 4, 1, 2, 3, 1, 2, 3, 1, 2, 3, 1, 2, 1, 2, 3, 4, 1, 2, 3, 1, 2, 3, 1, 2, 3, 1, 2, 1, 2, 3, 4, 1, 2, 3, 1, 2, 3, 1, 2, 3, 1, 2, 1, 2, 3, 4, 1, 2, 3, 1, 2, 3, 1, 2, 3, 1, 2, 3, 1, 2, 3, 4, 1, 2, 3, 1, 2, 3 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
LINKS
FORMULA
Lim_{n->infinity} (a(1) + a(2) + ... + a(n))/n = 2.08405776...
EXAMPLE
Sequence starts with 1, 2, 3, 4. Then 4 copies of 1, 2, 3 are appended, giving 1, 2, 3, 4, 1, 2, 3, 1, 2, 3, 1, 2, 3, 1, 2, 3. Then 3 copies of everything but the final entry 3 are appended, giving 16 + 15 + 15 + 15 = 61 terms.
MATHEMATICA
Nest[Join[#, Flatten@ ConstantArray[Drop[#, -1], #[[-1]]] ] &, Range@ 4, 3] (* Michael De Vlieger, Dec 08 2018 *)
PROG
(PARI) gen(n, v=[1, 2, 3, 4], w) = for(x=1, n, w=vector(#v-1, i, v[i]); for(y=1, v[#v], v=concat(v, w))); v
CROSSREFS
"Look to the left" sequences: A293630 (seed 1,2), A322423 (seed 1,2,3), A322425 (seed 1,2,3,4,5).
Cf. A322426.
Sequence in context: A084310 A214063 A078978 * A309198 A256914 A171171
KEYWORD
nonn
AUTHOR
Iain Fox, Dec 07 2018
EXTENSIONS
Self-contained definition from M. F. Hasler, Dec 10 2018
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 19 21:09 EDT 2024. Contains 371798 sequences. (Running on oeis4.)