OFFSET
2,2
FORMULA
MATHEMATICA
f[p_, e_] := p^(2*Floor[e/2]); a[n_] := Times @@ (f @@@ FactorInteger[n^2 - 1]); Array[a, 100, 2] (* Amiram Eldar, Jan 04 2023 *)
PROG
(Python)
from sympy.ntheory.factor_ import core
def a(n):
return (n**2-1)//core(n**2-1)
(PARI) a(n) = (n^2-1)/core(n^2-1); \\ Michel Marcus, Feb 19 2023
CROSSREFS
KEYWORD
nonn
AUTHOR
Darío Clavijo, Jan 04 2023
STATUS
approved