Compute the totient summatory function - MATLAB Cody - MATLAB Central

Problem 60516. Compute the totient summatory function

Difficulty:Rate
Cody Problem 656 deals with the totient function, denoted by phi(n) which counts the numbers less than n that are relatively prime to n. The first five values of the totient are 1, 1, 2, 2, and 4.
The totient summatory function Phi(n) is the sum of the values of phi(m) from m = 1 to n. Therefore, Phi(5) = 10.
Write a function to compute the totient summatory function.
Optional: determine the connection between the totient summatory function and the Farey sequence.

Solution Stats

100.0% Correct | 0.0% Incorrect
Last Solution submitted on Jul 25, 2024

Solution Comments

Show comments
PIVlab surpasses 100K all-time File Exchange downloads
During the past twelve months, PIVlab, a MATLAB Community Toolbox for particle...
4
8
LLMs with MATLAB updated to support the latest OpenAI Models
Large Languge model with MATLAB, a free add-on that lets you access...
2
4

Problem Recent Solvers5

Suggested Problems

More from this Author298

Problem Tags

Community Treasure Hunt

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

Start Hunting!