OFFSET
1,3
COMMENTS
The maximum value of x(n-x)(x-1) for x in 1..n is reached for x = A004396(n).
FORMULA
For n > 10 a(n) = floor((10n + 7)/12).
MATHEMATICA
PR[n_, r_] := (n - r)(r - 1) r^4; maxicon[lis_] := If[Length[lis] < 2, Length[lis], If[lis[[1]] >= lis[[2]], 1, 1 + maxicon[Rest[lis]]]]; SEQ[n_] := maxicon[Table[PR[n, i], {i, 1, n}]]; Table[SEQ[n], {n, 1, 122}]
CROSSREFS
KEYWORD
nonn
AUTHOR
José María Grau Ribas, Jul 10 2013
STATUS
approved