John D. Cook 6/27/2026

Writing down harmonic numbers

Read Original

This article discusses the nth harmonic number, defined as the sum of reciprocals of the first n positive integers. It explains how to express Hn as a fraction using n! and the least common multiple, then provides asymptotic estimates for the number of digits in the numerator and denominator based on the prime number theorem. The author tests these estimates with examples for n=50 and n=1000 using Python code, showing close agreement between predicted and actual digit counts. The content is technical and mathematical, focusing on number theory and computational verification.

Writing down harmonic numbers

Comments

No comments yet

Be the first to share your thoughts!

Browser Extension

Get instant access to AllDevBlogs from your browser

Top of the Week

No top articles yet