OFFSET
1,1
FORMULA
a(n) = least common multiple of (Ea-1), (Eb-1), (Ec-1), ..., (Oa+1), (Ob+1), (Oc+1)..., where Ea, Eb, Ec, ... and Oa, Ob, Oc, ... are respectively the even and odd divisors of n.
EXAMPLE
a(14) = 104. The divisors of 14 are 1,2,7 and 14 and the corresponding numbers obtained are 2,1,8 and 13 whose least common multiple is 104.
PROG
(PARI) a(n) = local(d); d = divisors(n); l = 1; for (i = 1, length(d), if (d[i]%2, d[i]++, d[i]--); l = lcm(l, d[i])); l; \\ David Wasserman, Mar 15 2005
CROSSREFS
KEYWORD
nonn
AUTHOR
Amarnath Murthy, Aug 18 2003
EXTENSIONS
More terms from David Wasserman, Mar 15 2005
STATUS
approved