|
|
A271504
|
|
With a(1) = 1, a(n) is the LCM of all 0 < m < n for which a(m) divides n.
|
|
3
|
|
|
1, 1, 2, 6, 2, 60, 2, 210, 2, 630, 2, 13860, 2, 90090, 2, 90090, 2, 3063060, 2, 29099070, 2, 29099070, 2, 1338557220, 2, 3346393050, 2, 10039179150, 2, 582272390700, 2, 9025222055850, 2, 9025222055850, 2, 18050444111700, 2, 333933216066450, 2, 333933216066450
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,3
|
|
LINKS
|
|
|
FORMULA
|
a(2n + 1) = 2 for all n > 1.
a(n) is even for all n > 2.
|
|
MATHEMATICA
|
a = {1}; Do[AppendTo[a, LCM @@ Select[Range[n - 1], Divisible[n, a[[#]]] &]], {n, 2, 40}]; a (* Michael De Vlieger, Apr 08 2016 *)
|
|
PROG
|
(Python 3.9+)
from math import lcm
from itertools import count, islice
from sympy import divisors
def A271504_gen(): # generator of terms
yield 1
for n in count(2):
yield (s:=lcm(*(A271504_dict.get(d, 1) for d in divisors(n, generator=True))))
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|