OFFSET
1,5
EXAMPLE
The integers which are >= 1 and are <= 9/2 and which are coprime to 9 are 1, 2 and 4. So a(9) = lcm(1,2,4) = 4.
MATHEMATICA
f[n_] := If[n == 1, 1, LCM @@ Select[Range[Floor[n/2]], GCD[ #, n] == 1 &]]; Table[f[n], {n, 45}] (* Ray Chandler, Nov 12 2006 *)
PROG
(PARI) a(n) = lcm(select(x->(gcd(x, n)==1), vector(n\2, k, k))); \\ Michel Marcus, Mar 18 2018
CROSSREFS
KEYWORD
nonn
AUTHOR
Leroy Quet, Nov 01 2006
EXTENSIONS
Extended by Ray Chandler, Nov 12 2006
STATUS
approved