OFFSET
1,4
COMMENTS
A composition has the largest missing value (LMV) property if its largest part is at least 2 and it does not contain a part one less than its largest part. - Andrew Howroyd, May 18 2020
LINKS
Andrew Howroyd, Table of n, a(n) for n = 1..1000
M. Archibald and A. Knopfmacher, The largest missing value in a composition of an integer, Discrete Math., 311 (2011), 723-731.
FORMULA
G.f.: Sum_{k>=2} 1/(1 - x*(1-x^(k-2))/(1-x) - x^k) - 1/(1 - x*(1-x^(k-2))/(1-x)). - Andrew Howroyd, May 18 2020
EXAMPLE
The a(5) = 6 compositions of 5 with the LMV property are: 5, 14, 41, 113, 131, 311. - Andrew Howroyd, May 18 2020
PROG
(PARI) seq(n)={Vec(sum(k=2, n, 1/(1 - x*(1-x^(k-2))/(1-x) - x^k) - 1/(1 - x*(1-x^(k-2))/(1-x)) + O(x*x^n)), -n)} \\ Andrew Howroyd, May 18 2020
CROSSREFS
KEYWORD
nonn
AUTHOR
N. J. A. Sloane, Apr 04 2011
EXTENSIONS
Terms a(21) and beyond from Andrew Howroyd, May 18 2020
STATUS
approved