#
DIFF.BLOG
New
Following
Discover
Jobs
More
Top Writers
Suggest a blog
Upvotes plugin
Report bug
Contact
About
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
The Days Of The Week
Blog Hayman ·
Aug 24, 2026
Doomsday Rule
mathematics
Three-term recurrences
John Cook ·
Aug 24, 2026
Special functions
mathematics
Prisoner’s Chessboard Puzzle
Obrhubr ·
Aug 22, 2026
Math
Puzzle
What sort of maths are LLMs good at?
Gowers Wordpress ·
Aug 12, 2026
mathematics
AI and maths
The Zone
Blog Computationalcomplexity ·
Jun 25, 2026
mathematics
problem-solving
My Mathematical Regression
Dahl's Blog ·
Jun 19, 2026
Python
mathematics
Discover more posts →
AUTHOR
RECENT POSTS FROM THE AUTHOR
Choose how you want to continue.
Continue with GitHub
Continue with Google