7 kyu

Mean Means

745 of 1,254tibor_r

Description:

Introduction

Take a list of n numbers a1, a2, a3, ..., aN to start with.

Arithmetic mean (or average) is the sum of these numbers divided by n.

Geometric mean (or average) is the product of these numbers taken to the nth root.

Example

List of numbers: 1, 3, 9, 27, 81

  • n = 5
  • Arithmetic mean = (1 + 3 + 9 + 27 + 81) / 5 = 121 / 5 = 24.2
  • Geometric mean = (1 * 3 * 9 * 27 * 81) ^ (1/5) = 59049 ^ (1/5) = 9

Task

You will be given a list of numbers and their arithmetic mean. However, the list is missing one number. Using this information, you must figure out and return the geometric mean of the FULL LIST, including the number that's missing.

Mathematics
Algorithms
Algebra

Similar Kata:

Stats:

CreatedAug 31, 2016
PublishedAug 31, 2016
Warriors Trained2767
Total Skips136
Total Code Submissions5001
Total Times Completed1254
Python Completions745
JavaScript Completions438
C# Completions115
Total Stars29
% of votes with a positive feedback rating87% of 307
Total "Very Satisfied" Votes243
Total "Somewhat Satisfied" Votes49
Total "Not Satisfied" Votes15
Total Rank Assessments116
Average Assessed Rank
7 kyu
Highest Assessed Rank
1 kyu
Lowest Assessed Rank
8 kyu
Ad
Contributors
  • tibor_r Avatar
  • suic Avatar
  • anter69 Avatar
  • user5036852 Avatar
  • agkg Avatar
  • JohanWiltink Avatar
  • hobovsky Avatar
  • dfhwze Avatar
  • saudiGuy Avatar
Ad