OFFSET
1,1
REFERENCES
W. M. Boyce, On a simple optimal stopping problem, Discr. Math., 5 (1973), 297-312.
N. J. A. Sloane and Simon Plouffe, The Encyclopedia of Integer Sequences, Academic Press, 1995 (includes this sequence).
FORMULA
A(m, p) = 0 for m < 0 or p < 0. A(0, 0) = 0. A(1, 0) = -1. A(0, 1) = 1. Otherwise, A(m, p) = A(m - 1, p) + A(m, p - 1).
B(m, p) = 0 for m < 0 or p < 0. Otherwise, B(m, p) = max{0, A(m, p) + B(m - 1, p) + B(m, p - 1)}.
a(n) = B(n, n + 2). - Sean A. Irvine, Feb 02 2015
CROSSREFS
KEYWORD
nonn
AUTHOR
EXTENSIONS
More terms from Sean A. Irvine, Feb 02 2015
STATUS
editing