OFFSET
1,6
COMMENTS
The largest prime divisor of A056057(n), the largest square divisor of binomial(n, floor(n/2)), or 1 if no such prime exists.
LINKS
Amiram Eldar, Table of n, a(n) for n = 1..10000
EXAMPLE
For n = 28: binomial(28,14) = 2*2*2*3*3*3*5*5*17*19*23, so a(28) = 5.
For n = 342: binomial(342,171) = 32*F, where F is squarefree, so a(341) = 2.
MATHEMATICA
a[n_] := Module[{f = Select[FactorInteger[Binomial[n, Floor[n/2]]], Last[#] > 1 &]}, If[f == {}, 1, f[[-1, 1]]]]; Array[a, 100] (* Amiram Eldar, Oct 05 2024 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Labos Elemer, Aug 10 2000
STATUS
approved