OFFSET
1,3
COMMENTS
LINKS
Carl R. White, Table of n, a(n) for n = 1..10000
EXAMPLE
n=35: divisors > 1 of 35 = {5,7,35}, a(35) = lcm(4,6,34) = 204;
n=37: divisors > 1 of 37 = {37}, a(37) = lcm(36) = 36.
MATHEMATICA
Join[{1}, Table[LCM @@ (Rest[Divisors[n]] - 1), {n, 2, 100}]] (* T. D. Noe, Apr 25 2012 *)
PROG
(PARI) a(n)=if(n>2, lcm(apply(k->k-1, vecextract(divisors(n), "2.."))), 1) \\ Charles R Greathouse IV, Apr 25 2012
(Haskell)
a084190 1 = 1
a084190 n = foldl1 lcm $ map (subtract 1) $ tail $ a027750_row' n
-- Reinhard Zumkeller, May 08 2012
(Python)
from math import lcm
from sympy import divisors
def A084190(n): return lcm(*(d-1 for d in divisors(n, generator=True) if d > 1)) # Chai Wah Wu, Jun 25 2022
CROSSREFS
KEYWORD
nonn
AUTHOR
Reinhard Zumkeller, May 18 2003
EXTENSIONS
a(45) was erroneously split into 61 and 6; repaired by Carl R. White, Apr 25 2012
STATUS
approved