OFFSET
0,3
LINKS
Alois P. Heinz, Table of n, a(n) for n = 0..140
EXAMPLE
The partitions of 4 in Mathematica order are 4, 31, 22, 211, 1111. The position of 22 is a(2) = 3.
MAPLE
b:= proc(n, i) option remember; `if`(n=0, 1,
`if`(i<1, 0, b(n, i-1) +`if`(i>n, 0, b(n-i, i))))
end:
a:= n-> 1 +add(b(n^2-j, j), j=n+1..n^2):
seq(a(n), n=0..20); # Alois P. Heinz, Sep 03 2014
MATHEMATICA
r[n_] := Table[n, {k, 1, n}]; Flatten[Table[Position[IntegerPartitions[n^2], r[n]], {n, 0, 8}]]
b[n_, i_] := b[n, i] = If[n==0, 1, If[i<1, 0, b[n, i-1]+If[i>n, 0, b[n-i, i]]]]; a[n_] := 1+Sum[b[n^2-j, j], {j, n+1, n^2}]; Table[a[n], {n, 0, 20}] (* Jean-François Alcover, Oct 28 2015, after Alois P. Heinz *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Clark Kimberling, Mar 04 2014
EXTENSIONS
a(9)-a(21) from Alois P. Heinz, Sep 03 2014
STATUS
approved