#
DIFF.BLOG
New
Following
Discover
Jobs
More
Top Writers
Suggest a blog
Upvotes plugin
Report bug
Contact
About
Privacy
+
Create new post
Create new blog
Add your blog
Sign up
The home for great developer writing.
We surface the best developer writing from thousands of independent blogs, updated daily.
Join Diff.blog
TOPICS
Closest harmonic number to an integer
·
John Cook
·
Nov. 20, 2025, 1:39 a.m.
Math
Harmonic Numbers
mathematics
algorithms
problem-solving
Summary
This blog post discusses finding the value of n such that the harmonic number Hn is closest to a given integer m. It builds on previous content about harmonic numbers and aims to solve two specific problems related to this concept.
Read full post on www.johndcook.com →
MORE POSTS LIKE THIS
Refactoring factorials
John Cook ·
Oct 19, 2026
Number theory
Factorials
Alpöge is the greatest mathematician since Gauss
Cp4space Hatsya ·
Nov 22, 2026
mathematics
artificial-intelligence
SciFort: SciPy algorithms in Fortran
Fortran Lang Discourse ·
Nov 23, 2026
Fortran
SciPy
The University of Bucharest Mathematics Entrance Exam (2015)
Andrei Nicusan ·
Nov 12, 2026
mathematics
education
Mono in the partial ordering of measures of disorder
The Sparkelling Bedangler ·
Nov 1, 2026
presortedness
mathematics
Squaring the triangle with help
Leancrew ·
Oct 26, 2026
mathematics
Geometry
Discover more posts →
AUTHOR
RECENT POSTS FROM THE AUTHOR
Choose how you want to continue.
Continue with GitHub
Continue with Google
By continuing, you agree to our
Privacy Policy
.