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

103 Solutions

10 Solvers

Last Solution submitted on Apr 28, 2026

Last 200 Solutions

Problem Comments

Solution Comments

Show comments
Loading...

Problem Recent Solvers10

Suggested Problems

More from this Author92

Community Treasure Hunt

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

Start Hunting!