Number of steps required to erase a finite sequence of nonnegative integers in the following way: at the n-th step, if the last number of the string is 0, delete it; otherwise replace it with n copies of the next-smaller number.

A147870

Number of steps required to erase a finite sequence of nonnegative integers in the following way: at the n-th step, if the last number of the string is 0, delete it; otherwise replace it with n copies of the next-smaller number.

Terms

    a(0) =1a(1) =2a(2) =4a(3) =14

External references