Problem 57472. Compute the Lagarias Riemann Hypothesis sequence

Write a function that takes an input number n and produces a sequence (i.e., all values up to and including the nth value) computed with
a(n) = floor(H(n) + exp(H(n))ln(H(n)))-sigma(n)
where H(n) is the nth harmonic number and sigma(n) is the sum of divisors of n.
Lagarias proved that a(n) >= 0 for all n only if the Riemann Hypothesis is true.

Solution Stats

66.67% Correct | 33.33% Incorrect
Last Solution submitted on Jun 11, 2024

Problem Comments

Solution Comments

Show comments

Problem Recent Solvers5

Suggested Problems

More from this Author275

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!