#
DIFF.BLOG
New
Following
Discover
Jobs
More
Top Writers
Suggest a blog
Upvotes plugin
Report bug
Contact
About
Privacy
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
mathematics
problem-solving
algorithms
Harmonic Numbers
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
mathematics
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
problem-solving
You Should be Terrified
Markmaunder ·
Oct 7, 2026
AI
AI
The barriers of perception
Terence Tao ·
Oct 7, 2026
Guest Blog
math.GM
Why I didn’t sign the Fields medallists’ letter
Gowers Wordpress ·
Sep 17, 2026
AI and maths
AI
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
.