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!)
A330416 a(n) = (number of times a(n-2) has already appeared) + (number of times a(n-3) has already appeared), starting with a(n) = n for n<3. 1
0, 1, 2, 2, 3, 4, 3, 3, 4, 6, 5, 3, 2, 5, 7, 5, 4, 4, 7, 8, 6, 3, 3, 8, 12, 8, 4, 4, 9, 12, 7, 3, 5, 10, 11, 5, 2, 6, 9, 7, 5, 6, 10, 10, 7, 6, 8, 10, 9, 8, 7, 8, 12, 12, 10, 8, 9, 12, 11, 9, 7, 7, 13, 16, 9, 2, 7, 11, 14, 12, 4, 7, 13, 17, 12, 3, 8, 15, 16, 9 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,3
COMMENTS
This sequence is a variant of A330332.
This sequence appears to diverge much more slowly than A330332.
LINKS
Rémy Sigrist, C program for A330416
EXAMPLE
a(0) = 0.
a(1) = 1.
a(2) = 2.
For n = 3:
- a(1) = 1 has appeared once, a(0) = 0 has appeared once,
- hence a(3) = 1+1 = 2.
For n = 4:
- a(2) = 2 has appeared twice, a(1) = 1 has appeared once,
- hence a(4) = 2+1 = 3.
MATHEMATICA
Nest[Append[#, Count[#, #[[-2]] ] + Count[#, #[[-3]] ]] &, {0, 1, 2}, 77] (* Michael De Vlieger, Dec 14 2019 *)
PROG
(C) See Links section.
CROSSREFS
Cf. A330332.
Sequence in context: A126688 A350238 A352746 * A359043 A054703 A048206
KEYWORD
nonn
AUTHOR
Rémy Sigrist, Dec 14 2019
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 28 02:17 EDT 2024. Contains 373761 sequences. (Running on oeis4.)