login
A227394
The maximum value of x^4(n-x)(x-1) for x in 1..n is reached for x = a(n).
0
1, 1, 2, 3, 4, 5, 6, 7, 7, 8, 9, 10, 11, 12, 13, 13, 14, 15, 16, 17, 18, 18, 19, 20, 21, 22, 23, 23, 24, 25, 26, 27, 28, 28, 29, 30, 31, 32, 33, 33, 34, 35, 36, 37, 38, 38, 39, 40, 41, 42, 43, 43, 44, 45, 46, 47, 48, 48, 49, 50, 51, 52, 53, 53, 54, 55, 56
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
Cf. A004396.
Sequence in context: A093697 A157466 A194260 * A209900 A097043 A245336
KEYWORD
nonn
AUTHOR
STATUS
approved