OFFSET
0,2
COMMENTS
It is not clear whether a(0) should be 1 or 0; this depends on whether the empty partition is a hook partition. By strict interpretation of the definition above, it is not; and except for n=0, there are exactly n hook partitions for each n. On the other hand, if defined as "a partition in whose Ferrers diagram every point is on the first row or column", the empty partition is a hook partition. - Franklin T. Adams-Watters, Jul 11 2009
LINKS
FORMULA
From Vladeta Jovovic, Dec 05 2002: (Start)
a(n) = 3*2^n - n - 3, n > 0.
G.f.: x*(2-x)/(1-2*x)/(1-x)^2.
Recurrence: a(n) = 4*a(n-1) - 5*a(n-2) + 2*a(n-3). (End)
Row sums of triangle A132048. Equals binomial transform of [1, 1, 4, 2, 4, 2, 4, 2, 4, ...]. - Gary W. Adamson, Aug 08 2007
EXAMPLE
The hook partitions of 4 are 4, 3+1, 2+1+1, 1+1+1+1; the corresponding products when parts are increased by 1 are 5, 8, 12, 16; and their sum is a(4) = 41.
MATHEMATICA
s=0; lst={1}; Do[s+=(s-n); AppendTo[lst, Abs[s]], {n, 2, 4!}]; lst (* Vladimir Joseph Stephan Orlovsky, Oct 10 2008 *)
PROG
(PARI) a(n)=if(n>0, 3*2^n - n - 3, 1) \\ Charles R Greathouse IV, Aug 08 2016
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Alford Arnold, Dec 02 2002
EXTENSIONS
More terms from John W. Layman, Dec 05 2002
STATUS
approved