The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 795 - File: showthread.php PHP 7.4.33 (FreeBSD)
File Line Function
/showthread.php 795 errorHandler->error





Post Reply 
(12C) Find the Nth Harmonic number
04-20-2022, 01:03 PM (This post was last modified: 04-20-2022 01:14 PM by Gamo.)
Post: #1
(12C) Find the Nth Harmonic number
Information about Harmonic Number

https://en.wikipedia.org/wiki/Harmonic_number

Instead of calculating the sum of the reciprocals of the first N natural numbers

n
1 + Σ (1/x) with this summation its easy to do on some calculator that already
x=2

have this Summation Function with this program the computation speed

is fast since it doesn't have to continue sum up all the needed reciprocals from 2 up to N

----------------------------------------------------
Example: Find 50th of the Harmonic Number

50 [R/S] display answer ≈ 4.499

----------------------------------------------------
Program:
Code:

STO 0
1/x
ENTER ENTER ENTER  // press [ENTER] three times
120
1/x

x
12
1/x
-
x
2
1/x
+
x
.5772156649  // this is Euler's Constant
+
RCL 0
LN
+

Gamo

Remark:
The Summation Formular above can be use to test on Casio fx-911ex as shown above.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
(12C) Find the Nth Harmonic number - Gamo - 04-20-2022 01:03 PM



User(s) browsing this thread: 1 Guest(s)