OFFSET
1,4
COMMENTS
The sums of the first 10^k terms, for k = 1, 2, ..., are 14, 168, 1779, 17959, 180665, 1808044, 18084622, 180856637, 1808585068, 18085891506, ... . Apparently, the asymptotic mean of this sequence is limit_{m->oo} (1/m) * Sum_{k=1..m} a(k) = 1.8085... . - Amiram Eldar, Sep 10 2022
LINKS
FORMULA
From Antti Karttunen, Aug 22 2017: (Start)
EXAMPLE
n = 288 = 2*2*2*2*2*3*3; lcm(5,2) = 10; Product(5,2) = 10, max(5,2) = 5;
n = 180 = 2*2*3*3*5; lcm(2,2,1) = 2; Product(2,2,1) = 4; max(2,2,1) = 2; it deviates both from maximum of exponents (A051903, for the first time at n=72), and product of exponents (A005361, for the first time at n=36).
For n = 36 = 2*2*3*3 = 2^2 * 3^2 we have a(36) = lcm(2,2) = 2.
For n = 72 = 2*2*2*3*3 = 2^3 * 3^2 we have a(72) = lcm(2,3) = 6.
For n = 144 = 2^4 * 3^2 we have a(144) = lcm(2,4) = 4.
For n = 360 = 2^3 * 3^2 * 5^1 we have a(360) = lcm(1,2,3) = 6.
MATHEMATICA
Table[LCM @@ Last /@ FactorInteger[n], {n, 2, 100}] (* Ray Chandler, Jan 24 2006 *)
PROG
(Scheme, with memoization-macro definec)
(definec (A072411 n) (if (= 1 n) 1 (lcm (A067029 n) (A072411 (A028234 n))))) ;; Antti Karttunen, Aug 09 2016
(Python)
from sympy import lcm, factorint
def a(n):
l=[]
f=factorint(n)
for i in f: l+=[f[i], ]
return lcm(l)
print([a(n) for n in range(1, 151)]) # Indranil Ghosh, Mar 25 2017
(PARI) a(n) = lcm(factor(n)[, 2]); \\ Michel Marcus, Mar 25 2017
CROSSREFS
Similar sequences: A001222 (sum of exponents), A005361 (product), A051903 (maximal exponent), A051904 (minimal exponent), A052409 (gcd of exponents), A267115 (bitwise-and), A267116 (bitwise-or), A268387 (bitwise-xor).
Differs from A290107 for the first time at n=144.
After the initial term, differs from A157754 for the first time at n=360.
KEYWORD
nonn,easy
AUTHOR
Labos Elemer, Jun 17 2002
EXTENSIONS
a(1) = 1 prepended and the data section filled up to 120 terms by Antti Karttunen, Aug 09 2016
STATUS
approved