OFFSET
1,3
FORMULA
a(n) = lcm_{1 <= k <= n, k odd}. - Peter Luschny, Oct 15 2012
a(n) = A025547(floor((n+1)/2)). - Georg Fischer, Nov 29 2022
EXAMPLE
a(8) is the least common multiple of {1,3,5,7}.
MAPLE
A217858 := n -> ilcm(op(select(j->j mod 2 = 1, [$1..n]))):
seq(A217858(i), i = 1..33); # Peter Luschny, Oct 15 2012
MATHEMATICA
a[n_] := LCM @@ Select[Range[n], OddQ]; Array[a, 33] (* Jean-François Alcover, Jun 27 2019 *)
PROG
CROSSREFS
KEYWORD
nonn
AUTHOR
Joerg Arndt, Oct 13 2012
STATUS
approved