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!)
A333196 Least k such that Sum_{i=1..n} k^n / i is a positive integer. 3
1, 2, 6, 6, 30, 10, 70, 70, 210, 210, 2310, 2310, 30030, 30030, 30030, 30030, 510510, 510510, 9699690, 1939938, 646646, 646646, 14872858, 44618574, 223092870, 223092870, 223092870, 223092870, 6469693230, 6469693230, 200560490130, 200560490130, 18232771830 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
COMMENTS
Least k > 0 such that k^n/A002805(n) is an integer.
LINKS
FORMULA
a(n) = A007947(A002805(n)).
EXAMPLE
For n = 6, the denominator of Sum_{i=1..6} 1/i is 20 = 2^2*5, so a(7) = 2*5 = 10.
PROG
(PARI) a(n) = factorback(factorint(denominator(sum(i=2, n, 1/i)))[, 1]);
(Python)
from functools import reduce
from operator import mul
from sympy import harmonic, factorint
def A333196(n):
fs = factorint(harmonic(n).q)
return 1 if len(fs) == 0 else reduce(mul, (p**(fs[p]//n + 1 if fs[p] % n else fs[p]//n) for p in fs)) # Chai Wah Wu, Apr 03 2020
CROSSREFS
Sequence in context: A366369 A163641 A333072 * A216850 A070889 A072744
KEYWORD
nonn
AUTHOR
Jinyuan Wang, Mar 10 2020
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 April 25 07:07 EDT 2024. Contains 371964 sequences. (Running on oeis4.)