login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A269024
a(n) = A269020(n) - n.
0
0, 1, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5
OFFSET
1,3
COMMENTS
Same as subtracting the index (n) from the output (a(n)) in A269020.
FORMULA
a(n) = either a(n-1) or a(n-1)+1.
When a(n) = a(n-1)+1, a(n) = A269023(a(n)) - n + 1.
EXAMPLE
a(20)=4 because A269020(20) = 24, and 24-20=4.
a(5)=2, a(6)=3 and A269023(3)=8, so a(6) = 8-6+1 = 3.
CROSSREFS
Sequence in context: A086673 A101787 A343607 * A244160 A064099 A134021
KEYWORD
nonn
AUTHOR
Bob Selcoe, Feb 18 2016
STATUS
approved