Computer Science, asked by vaibhav561299, 1 month ago

write a java program to find sum = −1/+10 + a−2/+9 + a−3 /+8 + ⋯ … … … … … … … … … … … −10/ +1​

Answers

Answered by OoblackbutterflyoO4
23

Answer:

@❥╬٨ـﮩﮩ❤٨ـﮩﮩـ╬❥Rational number, in arithmetic, a number that can be represented as the quotient p/q of two integers such that q ≠ 0. In addition to all the fractions, the set of rational numbers includes all the integers, each of which can be written as a quotient with the integer as the numerator and 1 as the denominator

Answered by rahulkumar445
0

Answer:

Given two integers

a and

n . The task is to find the sum of the series 1/a + 2/a2 + 3/a3 + … + n/an.

Examples:

Input: a = 3, n = 3

Output: 0.6666667

The series is 1/3 + 1/9 + 1/27 which is

equal to 0.6666667

Input: a = 5, n = 4

Output: 0.31039998

Similar questions