Question: Problem #1-Perfect Numbers A perfect number is a positive integer that equals the sum of all its positive factors (not including the number itself). The

 Problem #1-Perfect Numbers A perfect number is a positive integer that
equals the sum of all its positive factors (not including the number

Problem #1-Perfect Numbers A perfect number is a positive integer that equals the sum of all its positive factors (not including the number itself). The first perfect number is 6. It's three factors (1, 2, and 3) all add up to 6. Can you find the next positive number? (Hint: It's somewhere between 20 and 30) As with other numerical research, we can use computer algorithms to do our calculations for us. In the case of finding perfect numbers, we can use MATLAB to create the following plot: 1.6 o 1.2 28 2 O 06 02 0 5 10 15 20 25 30 35 40 45 50 number The x-axis is simply the numbers from 2 through 50. The y-axis is the factor sum ratio, which is simply the sum of the factors of a number divided the number itself. In most cases this ratio is 1 (such as with the number 12). It is the rare instance in which the ratio 1, that indicates a perfect number. To create this plot, you will need to create two MATLAB m-files (details follow) that: 1. compute_factors - a function that returns all of the factors of a positive integer 2. perfect_numbers-a script that utilizes compute_factors to create the plot

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!