Your task, to replicate this musical frequency is to write a method harmonicSeries that accepts an integer parameter n and retur
ns the sum of the first n reciprocals. In other words: harmonicSeries(n) returns: 1 + 1/2 + 1/3 + 1/4 + ... + 1/n For example, the call of harmonicSeries(2) should return 1.5. The call of harmonicSeries(16) should return 3.3807289932289937. The method should return 0.0 if passed the value 0 and should throw an IllegalArgumentException if passed a value less than 0.
Ab+ac=a(b+c) where a is the greatest common factor find greatest common factor of 10 and 50 10=1,2,5,10 50=1,2,5,10,25,50 greatest common is 10 a=10 10(1)+10(5)=10(1+5)=10(6)=60