1 3 + 3 3 + ⋅ ⋅ ⋅ + ( 2 n − 1 ) 3 = 1 4 1 3 7 2 1
Find n.
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
THIS SOLUTION IS ONLY HELPFUL TO THOSE WHO LOVE TO CODE. BUT I'D BE GLAD IF SOMEONE COULD ALSO PROVIDE A MATHEMATICAL APPROACH TO THIS PROBLEM.
//include iostream statement
//include cmath statement
using namespace std;
int series (int pos) {
int result = (pos * 2);
result -= 1;
result = pow (result, 3);
return (result);
}
int main (int argc, char* argv []) {
int result (0);
int counter (0);
while (result != 1413721) {
counter++;
result += series (counter);
}
cout << counter << endl;
return (0);
}
COMPILE WITH ANY C++ COMPILER TO GET THE ANSWER, i.e. 29
NOT A SOLUTION. Note: The idea behind this problem came from me, then me and @Daniel Liu worked on it (ok it was pretty easy) and i found the numbers.
Your problem statement could have been better. Be more creative!
Problem Loading...
Note Loading...
Set Loading...
The left-hand side of the equation is equivalent to
∑ k = 1 2 n ( k 3 ) - 8 ∑ j = 1 n ( k 3 ) =
[ ( 2 n ) ∗ ( 2 n + 1 ) / 2 ] 2 − 8 ∗ [ n ∗ ( n + 1 ) / 2 ] 2 =
n 2 ∗ ( 2 n 2 − 1 ) .
Setting this equal to 1 4 1 3 7 2 1 and solving for n 2 using the quadratic equation gives us n 2 = 8 4 1 , and thus n = 2 9 .