OFFSET
0,3
COMMENTS
If n is even and n+1 is prime, a(n) = n^2 * (n-1)!^2. If n is odd and >3, 2*(n+1)*a(n) is a perfect square, the root of which has the factor 1/2*n*(n-1)*((n-1)/2)!. This was proved by Lawrence Sze. - Ralf Stephan, Nov 16 2004
LINKS
Paolo Xausa, Table of n, a(n) for n = 0..250
FORMULA
a(n) = Product_{k=1..n} lcm(k, n+1-k).
EXAMPLE
1 2 3 4 5...
2 2 6 4 10...
3 6 3 12 15...
4 4 12 4 20...
5 10 15 20 5...
...
The same array in triangular form is
1
2 2
3 2 3
4 6 6 4
5 4 3 4 5
...
Sequence contains the product of the terms of the n-th row.
MAPLE
a:= n-> mul(ilcm(i, 1+n-i), i=1..n):
seq(a(n), n=0..18); # Alois P. Heinz, Nov 23 2025
MATHEMATICA
A082022[n_] := n!^2/Product[GCD[k, n + 1], {k, n}];
Array[A082022, 20, 0] (* Paolo Xausa, Nov 24 2025 *)
PROG
(PARI) for(n=0, 20, p=1; for(k=1, n, p=p*lcm(k, n+1-k)); print1(p, ", "))
CROSSREFS
KEYWORD
nonn
AUTHOR
Amarnath Murthy, Apr 06 2003
EXTENSIONS
Corrected and extended by Ralf Stephan, Apr 08 2003
a(0)=1 prepended by Alois P. Heinz, Nov 23 2025
STATUS
approved
