|
|
A260656
|
|
a(n) = lcm{!2, !3, ..., !n}, where !n = A000166(n) is subfactorial.
|
|
1
|
|
|
1, 2, 18, 396, 104940, 10808820, 160327227060, 486432806900040, 72152091814676033160, 105952244289903723626034120, 1697305261921685687642685992397720, 108004858262683508632706244802225075247640, 266448824855803491635798907952730108331437779905720
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
2,2
|
|
COMMENTS
|
a(n) <= A131631(n).
|
|
LINKS
|
Alois P. Heinz, Table of n, a(n) for n = 2..45
Index entries for sequences related to lcm's
|
|
EXAMPLE
|
For n = 5, a(5) = lcm(!2, !3, !4, !5) = lcm(1, 2, 9, 44) = 396.
|
|
MAPLE
|
b:= proc(n) option remember;
`if`(n=0, 1, n*b(n-1)+(-1)^n)
end:
a:= n-> ilcm(seq(b(i), i=2..n)):
seq(a(n), n=2..15); # Alois P. Heinz, May 08 2020
|
|
MATHEMATICA
|
LCM@@@Subfactorial@Range[2, Range[2, 14]]
|
|
PROG
|
(PARI) a(n) = lcm(vector(n-1, k, if(k+1, round((k+1)!/exp(1)), 1))); \\ Altug Alkan, Nov 13 2015
|
|
CROSSREFS
|
Cf. A000166, A131631.
Sequence in context: A226837 A152684 A201732 * A141074 A351052 A082402
Adjacent sequences: A260653 A260654 A260655 * A260657 A260658 A260659
|
|
KEYWORD
|
nonn
|
|
AUTHOR
|
Vladimir Reshetnikov, Nov 13 2015
|
|
STATUS
|
approved
|
|
|
|