A366549 a(0) = 0; for n > 0, a(n) is the number of terms prior to and including the term a(n-1-a(n-1)) that equal a(n-1-a(n-1)).
0, 1, 1, 1, 2, 2, 3, 3, 1, 2, 2, 4, 2, 4, 3, 1, 3, 2, 5, 2, 6, 3, 1, 5, 1, 2, 2, 7, 1, 1, 8, 6, 8, 7, 9, 8, 1, 3, 1, 6, 2, 11, 1, 1, 12, 2, 13, 2, 11, 6, 13, 6, 11, 1, 3, 5, 2, 7, 2, 13, 1, 3, 14, 2, 8, 13, 3, 15, 3, 4, 4, 9, 1, 2, 2, 16, 3, 16, 8, 4, 1, 5, 11, 2, 4, 17, 10, 11, 11, 2, 5, 1, 5
Offset: 0
Examples
a(2) = 1 as a(2-1-a(2-1)) = a(1-1) = a(0) = 0, and there is one term prior to or equal to a(0) that equals 0, namely a(0). a(6) = 3 as a(6-1-a(6-1)) = a(5-2) = a(3) = 1, and there are three terms prior to or equal to a(3) that equal 1, namely a(1), a(2) and a(3).
Links
- Scott R. Shannon, Table of n, a(n) for n = 0..10000
- Scott R. Shannon, Image of the first 10 million terms.
Comments