OFFSET
0,3
LINKS
Alois P. Heinz, Table of n, a(n) for n = 0..200
EXAMPLE
a(2) = 5 because in the length 2 sequences on {1,2}: (1',1), (1',2'), (2',1), (2',2) there are 5 new maxima indicated with '.
MAPLE
b:= proc(n, i) option remember; if i<2 then [i$j=1..n]
else b(n, i-1); add([0$t=1..j-1, add(%[h], h=1..j)+
(j-1)^(i-1), %[t]$t=j+1..n], j=1..n) fi
end:
a:= n-> add(i, i=b(n, n)):
seq(a(n), n=0..25); # Alois P. Heinz, Apr 28 2013
MATHEMATICA
f[x_List]:=Length[Union[Rest[FoldList[Max, 0, x]]]]; Table[Total[Map[f, Tuples[Range[1, n], n]]], {n, 1, 6}]
CROSSREFS
KEYWORD
nonn
AUTHOR
Geoffrey Critzer, Apr 27 2013
EXTENSIONS
More terms from Alois P. Heinz, Apr 28 2013
STATUS
approved