OFFSET
1,2
FORMULA
a(n) = [x^n] n*x/(1 - x*(1 - x + n)).
a(n) = Sum_{s} Product_{i=1..k} c_i * (n - 1 + [i,1]) where the sum is over all compositions of n, [c_1, c_2, ..., c_k].
Conjecture: a(n) = n * A342168(n-1).
EXAMPLE
a(2) = 6 counts: (1#,1), (1,1#), (1#,2#), (2#,1#), (2#,2), (2,2#) where # denotes a mark.
PROG
(PARI)
a(n) = concat([0], Vec(n*x/(1-x*(1-x+n))+O('x^(n+1))))[n+1]
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
John Tyler Rascoe, May 21 2025
STATUS
approved
