Integrated Development Environment
Answer:
See the code below.
Explanation:
The nth armonic number is obtained from the following induction process:
And for the the n term we have this:
In order to create a code for the ne term we can use the following code using python:
# Code to find the nth armonic
# Function to find n-th Harmonic Number
def armonicseries(n) :
# a1 = 1
harmonic = 1
# We need to satisfy the following formulas:
# an = a1 + a2 + a3 ... +..... +an-1 + an-1 + 1/n
for i in range(2, n + 1) :
harmonic += 1 / i
return harmonic
##############################
And then with the following instructions we find the solution for any number n.
n = 3 # thats the number of n that we want to find
print(round(armonicseries(n),5))
Port 53
Man sometimes the answer minimum of 20 to explain is a bit unnecessary.
It's port 53 what else do you need to know?