OFFSET
1,6
LINKS
Amiram Eldar, Table of n, a(n) for n = 1..1000
FORMULA
EXAMPLE
Observe cases when consecutive terms are equal: n={1,2,3,4,6,10,...,78,80,82,88,96}.
MATHEMATICA
a[n_] := Module[{e = FactorInteger[n!][[;; , 2]]}, GCD[Times @@ (2*e+1), Times @@ (e+1)]]; Array[a, 100] (* Amiram Eldar, Dec 02 2023 *)
PROG
(PARI) a(n) = {my(e = factor(n!)[, 2]); gcd(vecprod(apply(x -> 2*x+1, e)), vecprod(apply(x -> x+1, e))); } \\ Amiram Eldar, Dec 02 2023
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Labos Elemer, Apr 09 2002
STATUS
approved