Cody

Problem 44676. Mean = Standard Deviation

Create a series with following properties;

  1. All of the members should be positive integer
  2. Mean of the series should be integer
  3. Standard deviation of the series should be integer (use a normalization factor of N instead of N-1)
  4. Mean should be equal to standard deviation

For example if input is 6, you can return the following series;

out = [12 44 2 24 2 6]
mean(out) = 15;
std(out,1) = 15;

Another example; if input is 4, a possible solution;

out = [24 2 2 48];
mean(out) = 19;
std(out,1) = 19;

Solution Stats

41.67% Correct | 58.33% Incorrect
Last solution submitted on Jun 20, 2018

Problem Comments

Problem Recent Solvers3

Suggested Problems

More from this Author57