login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A374989 Square root of largest unitary square divisor of n!. 3
1, 1, 1, 1, 1, 1, 12, 12, 3, 9, 720, 720, 160, 160, 35, 189, 189, 189, 145152, 145152, 7257600, 12800, 275, 275, 136857600, 684288000, 4343625, 17875, 875875, 875875, 125536739328, 125536739328, 15324309, 637, 709689344, 9052160000, 18104320000, 18104320000, 2624375 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,7
COMMENTS
Unitary analog of A055772.
a(n) is even if and only if n > 1 and is in A006364.
LINKS
FORMULA
a(n) = sqrt(A374988(n)).
a(n) = A071974(n!).
MATHEMATICA
f[p_, e_] := If[EvenQ[e], p^(e/2), 1]; a[0] = a[1] = 1; a[n_] := Times @@ f @@@ FactorInteger[n!]; Array[a, 40, 0]
PROG
(PARI) a(n) = {my(f = factor(n!)); prod(i = 1, #f~, if(f[i, 2]%2, 1, f[i, 1]^(f[i, 2]/2))); }
(Python)
from math import prod
from itertools import count, islice
from collections import Counter
from sympy import factorint
def A374989_gen(): # generator of terms
c = Counter()
for i in count(0):
c += Counter(factorint(i))
yield prod(p**(e>>1) for p, e in c.items() if e&1^1)
A374989_list = list(islice(A374989_gen(), 30)) # Chai Wah Wu, Jul 27 2024
CROSSREFS
Sequence in context: A125509 A281251 A247511 * A097824 A133208 A118877
KEYWORD
nonn
AUTHOR
Amiram Eldar, Jul 26 2024
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified August 10 16:53 EDT 2024. Contains 375058 sequences. (Running on oeis4.)