The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
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!)
A112822 Least number k such that lcm{1,2,...,k}/denominator of harmonic number H(k) = 2n-1. 14
1, 6, 105, 44, 63, 33, 156, 20, 272, 343, 38272753, 11881, 100, 66, 822, 28861, 77 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
COMMENTS
First occurrence of 2n-1 in A110566.
Sequence continues: a(18)=?, 1332, 162, 2758521, 24649, 21, a(24)=?, 294, a(26)=?, 1166, 110, 126059, 201957, 3660, 37553041, 344929, 296341, a(35)=?, 25155299, a(37)=?, 500, 42
LINKS
MATHEMATICA
a = h = 1; t = Table[0, {100}]; Do[a = LCM[a, n]; h = h + 1/n; b = a/Denominator[h]; If[b < 101 && t[[(b + 1)/2]] == 0, t[[(b + 1)/2]] = n], {n, 500000}]; t
PROG
(Python)
from fractions import Fraction
from sympy import lcm
def A112822(n):
k, l, h = 1, 1, Fraction(1, 1)
while l != h.denominator*(2*n-1):
k += 1
l = lcm(l, k)
h += Fraction(1, k)
return k # Chai Wah Wu, Mar 06 2021
CROSSREFS
Sequence in context: A285027 A184188 A356008 * A033589 A077289 A279520
KEYWORD
nonn,more
AUTHOR
Robert G. Wilson v, Sep 15 2005
EXTENSIONS
a(11), a(32) from Max Alekseyev, Nov 29 2013
a(33)-a(34) from Chai Wah Wu, Mar 06 2021
a(36), a(38), a(39) from Chai Wah Wu, Mar 12 2021
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 May 22 10:24 EDT 2024. Contains 372745 sequences. (Running on oeis4.)