|
|
A025552
|
|
LCM of {C(0,0), C(1,0), ..., C(n, floor(n/2))}.
|
|
1
|
|
|
1, 1, 2, 6, 6, 30, 60, 420, 420, 1260, 1260, 13860, 13860, 180180, 360360, 360360, 360360, 6126120, 6126120, 116396280, 116396280, 116396280, 116396280, 2677114440, 2677114440, 13385572200, 13385572200, 40156716600, 40156716600, 1164544781400
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
0,3
|
|
LINKS
|
|
|
FORMULA
|
Let b(n) = 2 if n = 2^m or n = 2^m + 1 for some m, otherwise 1; then a(n) = lcm({1,2,...,n}) / b(n). - Peter Luschny, Jun 26 2009
|
|
MAPLE
|
LCM := proc(n) option remember; if n < 2 then 1 else ilcm(n, LCM(n-1)) fi end;
a := proc(n) local i; add(i, i=convert(2*iquo(n+2, 2), base, 2)); `if`(%=1, LCM(n), LCM(n)/2) end: # Peter Luschny, Jun 26 2009
|
|
MATHEMATICA
|
l[1] = 1; l[n_Integer?NonNegative] := l[n] = LCM[n, l[n - 1]];
a[0] = 1; a[n_Integer?NonNegative] := a[n] = Module[{s}, s = Total[IntegerDigits[2*Quotient[n + 2, 2], 2]]; If[s == 1, l[n], l[n]/2]];
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn
|
|
AUTHOR
|
|
|
EXTENSIONS
|
|
|
STATUS
|
approved
|
|
|
|