OFFSET
1,3
COMMENTS
a(n) is asymptotic to (n^2)/4.
LINKS
Alois P. Heinz, Table of n, a(n) for n = 1..1000
Index entries for linear recurrences with constant coefficients, signature (2,-1,0,1,-2,1).
FORMULA
G.f.: t^2*(1 + 2*t^3 - 5*t^4 + 8*t^5 - 4*t^6)/((1-t)^2*(1-t^4)). - Mamuka Jibladze, Aug 22 2019
EXAMPLE
a(26) = 165 because 26 = 11+15 and lcm(11,15) = 165 is maximal.
MAPLE
a:= n-> `if`(n<2, 0, max(seq(ilcm(i, n-i), i=1..n/2))):
seq(a(n), n=1..60); # Alois P. Heinz, Feb 16 2013
MATHEMATICA
Join[{0}, Rest[With[{n = 60}, Max[LCM @@@ IntegerPartitions[#, {2}]] & /@ Range[1, n]]]] (* Modified by Philip Turecek, Mar 25 2023 *)
a[n_] := If[n<2, 0, Max[Table[LCM[i, n-i], {i, 1, n/2}]]]; Table[a[n], {n, 1, 60}] (* Jean-François Alcover, Jul 15 2015, after Alois P. Heinz *)
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Nickolas Reynolds (nickels(AT)gmail.com), Apr 25 2007
STATUS
approved