cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A382329 Least positive integer that gives a square of an integer when multiplied by the n-th harmonic number.

Original entry on oeis.org

1, 6, 66, 12, 8220, 20, 420, 213080, 17965080, 153720, 2320468920, 14109480, 412970037480, 422245703880, 430902992520, 6076390320, 516336630329520, 161488607280, 21362271268818480, 866533600973040, 97555876321904, 186715152624, 52866073370045936
Offset: 1

Views

Author

Ali Sada, Mar 21 2025

Keywords

Examples

			6*3/2 = 9, a square of an integer, so a(2) = 6.
		

Crossrefs

Programs

  • PARI
    a(n)={my(s=sum(i=1, n, 1/i)); denominator(s)*core(numerator(s))}; \\ Yifan Xie, Mar 22 2025
    
  • PARI
    apply( {A382329(n)=denominator(n=harmonic(n))*core(numerator(n))}, [1..20]) \\ M. F. Hasler, May 08 2025
    
  • Python
    from math import prod
    from sympy import harmonic, factorint
    def A382329(n):
        a, b = harmonic(n).as_numer_denom()
        return b*prod(p for p, e in factorint(a).items() if e&1) # Chai Wah Wu, Mar 23 2025

Formula

a(n) = A002805(n) * A007913(A001008(n)).

Extensions

More terms from Yifan Xie, Mar 22 2025