What I want to do in this video is come up with an expression for finding the sum from i equals 0 to n of i squared. So if I were to expand this out, this is equal to 0 squared plus 1 squared plus 2 squared plus 3 squared.
Returns the positive square root of a number. SUBTRACT(x, y) Returns the difference of two numbers. SUM(x[, y[, ...]]) Returns the sum of one or more numbers. TAN(x) Returns the tangent of a number. TANH(x) Returns the hyperbolic tangent of a number.
The smallest number that can be written as the sum of two squares in two ways is . So, according to Euler, we should be able to write it as the product of two factors each of which is the sum of two squares. After a little thought we see that = + = + 50 1 7 5 5 2 2 2 2 ( )(= × = + + 50 5 10 1 2 1 3 2 2 2 2). As a bonus, it can also be written ...
Practice JavaScript coding with fun, bite-sized challenges. Earn XP, unlock achievements and level up. It's like Duolingo for learning to code. Sign In. Register. JavaScript. C#. C++. Java. JavaScript. PHP.