QUESTION 1: The nth harmonic number is defined non-recursively as: 1 +1/2 + 1/3 + 1/4 + … + 1/n. Which of the following represents the 4th harmonic number? A) 1/24 B) (12+6+4+3)/12 C) 4/24 D) 25/12 E) 2.08333 QUESTION 2: Which is a valid recursive definition of the nth harmonic number? A) 1 if n is 1, 1/n + the (n-1)th harmonic number otherwise B) 1 +1/2 + 1/3 + 1/4 + … + 1/n C) 1/n + the (n-1)th harmonic number otherwise D) none of the above

LANGUAGE: JAVA

CHALLENGE:

QUESTION 1:

The nth harmonic number is defined non-recursively as: 1 +1/2 + 1/3 + 1/4 + … + 1/n. Which of the following represents the 4th harmonic number?

A) 1/24
B) (12+6+4+3)/12
C) 4/24
D) 25/12
E) 2.08333

QUESTION 2:

Which is a valid recursive definition of the nth harmonic number?

A) 1 if n is 1, 1/n + the (n-1)th harmonic number otherwise
B) 1 +1/2 + 1/3 + 1/4 + … + 1/n
C) 1/n + the (n-1)th harmonic number otherwise
D) none of the above

SOLUTION:

The Bad News: The content you are trying to access is only available to members.

The Good News: You too can be a member, simply Click Here.

Already a member?

Posted in ,