galaxytorrents
Calculators
General
Algebra
Geometry
Coordinate-geometry
Statistics
Calculus
Qna
Math
galaxytorrents
galaxytorrents
Home
General
Algebra
Geometry
Coordinate-geometry
Statistics
Calculus
Qna
Math
MATH SOLVE
Home
General
Use a while loop to determine how many terms in the series 3k^2 are required for the sum to surpass...
4 months ago
Q:
Use a while loop to determine how many terms in the series 3k^2 are required for the sum to surpass 2000
Accepted Solution
A:
Using JAVA:
int sum = 0;
int k = 1;
while(sum <= 2000) {
sum += 3*k*k;
k++;
}
System.out.println(k);
Output: 14
Which means it will take 14 terms for the series to surpass 2000