Problem 45831. Compute the Bernoulli numbers
The Bernoulli numbers appear in several applications in number theory, including expressions for sums of powers and certain values of the Riemann zeta function. For each index m, the Bernoulli numbers have two values, one denoted with a plus superscript and one denoted with a minus superscript.
For m = 0, 1, 2, 3, 4, the "plus" values are = 1, 1/2, 1/6, 0, and -1/30, respectively. The "minus" values are the same, except for m = 1, for which the value is -1/2.
Compute the two values of the Bernoulli numbers for the given index. Round to seven places after the decimal.
Solution Stats
Solution Comments
Show commentsProblem Recent Solvers12
Suggested Problems
-
3058 Solvers
-
108 Solvers
-
Find Index of maximum Value and maximum Value of a vector
165 Solvers
-
Matrix of almost all zeros, except for main diagonal
183 Solvers
-
Basics: counting digits of a number irrespective of the sign
67 Solvers
More from this Author279
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!