#
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
Navigation with only addition, subtraction, and tables
John Cook ·
Sep 23, 2026
Math
mathematics
Why I didn’t sign the Fields medallists’ letter
Gowers Wordpress ·
Sep 17, 2026
AI and maths
AI
Terence Tao on the paradox of solving mathematical problems
Nathan Yau ·
Sep 9, 2026
artificial-intelligence
Big Think
The Days Of The Week
Blog Hayman ·
Aug 24, 2026
mathematics
algorithms
Prisoner’s Chessboard Puzzle
Obrhubr ·
Aug 22, 2026
Math
Puzzle
The Zone
Blog Computationalcomplexity ·
Jun 25, 2026
mathematics
Creativity
Discover more posts →
AUTHOR
Advertise
Sponsor diff.blog
Put your product in front of developers who read and write about their craft. One exclusive sponsor at a time.
Become a sponsor →
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
.