MathBz MathBz
  • Home
  • Calculators
  • Checkers
  • Converters
  • Symbols
Search Site
Type and hit enter to search

Sum of Squares of First N Numbers Calculator

Natural, Even, Odd, Prime & Composite

Welcome to the sum of squares of first N numbers calculator, where the following 5 problems can be easily solved:

  • 1The sum of squares of first N natural numbers
  • 2The sum of squares of first N even numbers
  • 3The sum of squares of first N odd numbers
  • 4The sum of squares of first N prime numbers
  • 5The sum of squares of first N composite numbers

Sum of Squares of First N Numbers Calculator

Eg, the sum of squares of first 5 prime numbers. Enter 5 into the input box and select Prime Number data type.

Calculate Reset

How to calculate the sum of squares of first N natural numbers

Natural numbers refer to the set of non-negative integers, i.e. 0 and positive integers, which are often represented by N. To calculate the sum of squares of first N natural numbers, first, you must find the values of first N natural numbers, then calculate the square of each number, and finally add the squares to get the answer.

For example, the sum of squares of first 5 natural numbers.

  1. First 5 natural numbers are: 0, 1, 2, 3, 4
  2. The square values of first 5 natural numbers are: 0, 1, 4, 9, 16
  3. The sum of squares of first 5 natural numbers is: 0 + 1 + 4 + 9 + 16 = 30

Calculate the sum of squares of first N natural numbers using the formula

From the definition of natural numbers above, we know that natural numbers are a set of arithmetic sequences, the first item is 0, and the tolerance is 1. According to the formula of the sum of squares of first N items of arithmetic sequence

Sn = n * a12 + n * (n – 1) * a1 * d + n * (n – 1) * (2 * n – 1)* d26

Among them, a1 is the first item of the sequence, d is the tolerance.

The formula of the sum of squares of first N natural numbers can be derived as follows:

Sn = n * a12 + n * (n – 1) * a1 * d + n * (n – 1) * (2 * n – 1)* d26

= n * 02 + n * (n – 1) * 0 * 1 + n * (n – 1) * (2 * n – 1)* 126

= n * (n – 1) * (2 * n – 1)6

For example, the sum of squares of first 5 natural numbers above, use the formula to calculate:

5 * (5 – 1) * (2 * 5 – 1)6 = 5 * 4 * 96 = 30

It is consistent with the calculation result above.

How to calculate the sum of squares of first N even numbers

A number that can be divided by 2 is called an even number. Note that, the quotient of 0 divided by 2 is also 0, so 0 is also classified as an even number. To calculate the sum of squares of first N even numbers, first, you must find the values of first N even numbers, then calculate the square of each number, and finally add the squares to get the answer.

For example, the sum of squares of first 5 even numbers.

  1. First 5 even numbers are: 0, 2, 4, 6, 8
  2. The square values of first 5 even numbers are: 0, 4, 16, 36, 64
  3. The sum of squares of first 5 even numbers is: 0 + 4 + 16 + 36 + 64 = 120

Calculate the sum of squares of first N even numbers using the formula

Obviously, even numbers are also a set of arithmetic sequences, the first item is 0, and the tolerance is 2. According to the formula of the sum of squares of first N items of arithmetic sequence

Sn = n * a12 + n * (n – 1) * a1 * d + n * (n – 1) * (2 * n – 1)* d26

Among them, a1 is the first item of the sequence, d is the tolerance.

The formula of the sum of squares of first N even numbers can be derived as follows:

Sn = n * a12 + n * (n – 1) * a1 * d + n * (n – 1) * (2 * n – 1)* d26

= n * 02 + n * (n – 1) * 0 * 1 + n * (n – 1) * (2 * n – 1)* 226

= 2 * n * (n – 1) * (2 * n – 1)3

So, the sum of squares of first 5 even numbers can be calculated by the formula:

2 * 5 * (5 – 1) * (2 * 5 – 1)3 = 2 * 5 * 4 * 93 = 120

It is consistent with the calculation result above.

How to calculate the sum of squares of first N odd numbers

In integers, numbers that cannot be divided by 2 are called odd numbers. Similarly, to calculate the sum of squares of first N odd numbers, first, you must find the values of first N odd numbers, then calculate the square of each number, and finally add the squares to get the answer.

For example, the sum of squares of first 5 odd numbers.

  1. First 5 odd numbers are: 1, 3, 5, 7, 9
  2. The square values of first 5 odd numbers are: 1, 9, 25, 49, 81
  3. The sum of squares of first 5 odd numbers is: 1 + 9 + 25 + 49 + 81 = 165

Calculate the sum of squares of first N odd numbers using the formula

Like even numbers, odd numbers are also a set of arithmetic sequences, the first item is 1, and the tolerance is 2. According to the formula of the sum of squares of first N items of arithmetic sequence

Sn = n * a12 + n * (n – 1) * a1 * d + n * (n – 1) * (2 * n – 1)* d26

Among them, a1 is the first item of the sequence, d is the tolerance.

The formula of the sum of squares of first N odd numbers can be derived as follows:

Sn = n * a12 + n * (n – 1) * a1 * d + n * (n – 1) * (2 * n – 1)* d26

= n * 12 + n * (n – 1) * 1 * 1 + n * (n – 1) * (2 * n – 1)* 226

= n * (2 * n – 1) + 2 * n * (n – 1) * (2 * n – 1)3

So, the sum of squares of first 5 odd numbers can be calculated by the formula:

5 * (2 * 5 – 1) + 2 * 5 * (5 – 1) * (2 * 5 – 1)3 = 5 * 9 + 2 * 5 * 4 * 93 = 165

It is consistent with the calculation result above.

How to calculate the sum of squares of first N prime numbers

A prime number is an integer that has no factors other than 1 and itself among the natural numbers greater than 1. To calculate the sum of squares of first N prime numbers, first, you must find the values of first N prime numbers, then calculate the square of each number, and finally add the squares to get the answer.

For example, the sum of squares of first 5 prime numbers.

  1. First 5 prime numbers are: 2, 3, 5, 7, 11
  2. The square values of first 5 prime numbers are: 4, 9, 25, 49, 121
  3. The sum of squares of first 5 prime numbers is: 4 + 9 + 25 + 49 + 121 = 208

22 + 32 + 52 + 72 + 112 = 4 + 9 + 25 + 49 + 121 = 208

How to calculate the sum of squares of first N composite numbers

A composite number is an integer greater than 1 that is divisible by other integers in addition to 1 and itself. To calculate the sum of squares of first N composite numbers, first, you must find the values of first N prime numbers, then calculate the square of each number, and finally add the squares to get the answer.

For example, the sum of squares of first 5 composite numbers.

  1. First 5 composite numbers are: 4, 6, 8, 9, 10
  2. The square values of first 5 composite numbers are: 16, 36, 64, 81, 100
  3. The sum of squares of first 5 composite numbers is: 16 + 36 + 64 + 81 + 100= 297

42 + 62 + 82 + 92 + 102 = 16 + 36 + 64 + 81 + 100= 297

How to use the sum of squares of first N numbers calculator

The procedure to use the sum of squares of first N numbers calculator is as follows:

  • 1Enter the first N value in the first input box.
  • 2Select data type: natural number, odd number, even number, prime number or composite number.
  • 3Click calculate button to get the sum of squares of first N numbers result.
  • 4Click the Reset button to start a new calculation.

Solved examples using sum of squares of first N numbers calculator

The sum of squares of first N natural numbers

For example, calculate the sum of squares of first 15 natural numbers.

Calculate by manual

First 15 natural numbers are 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13 and 14. The sum of squares of them is:

02 + 12 + 22 + 32 + 42 + 52 + 62 + 72 + 82 + 92 + 102 + 112 + 122 + 132 + 142

= 0 + 1 + 4 + 9 + 16 + 25 + 36 + 49 + 64 + 81 + 100 + 121 + 144 + 169 + 196

= 1015

Calculate by formula

n * (n – 1)(2 * n – 1)6

= 15 * (15 – 1) * (2 * 15 – 1)6

= 15 * 14 * 296

= 1015

Calculate by calculator

Enter 15 into the input box and select natural number data type, then click Calculate button, as shown in the figure, the answer is also 1015.

the sum of squares of first 15 natural numbers.

The sum of squares of first N even numbers

For example, calculate the sum of squares of first 10 even numbers.

Calculate by manual

First 10 even numbers are 0, 2, 4, 6, 8, 10, 12, 14, 16 and 18. The sum of squares of them is:

02 + 22 + 42 + 62 + 82 + 102 + 122 + 142 + 162 + 182

= 0 + 4 + 16 + 36 + 64 + 100 + 144 + 196 + 256 + 324

= 1140

Calculate by formula

2 * n * (n – 1)(2 * n – 1)3

= 2 * 10 * (10 – 1) * (2 * 10 – 1)3

= 20 * 9 * 193

= 1140

Calculate by calculator

Enter 10 into the input box and select even number data type, then click Calculate button, as shown in the figure, the answer is also 1140.

the sum of squares of first 10 even numbers.

The sum of squares of first N odd numbers

For example, calculate the sum of squares of first 12 odd numbers.

Calculate by manual

First 12 odd numbers are 1, 3, 5, 7, 9, 11, 13, 15, 17, 19, 21 and 23. The sum of squares of them is:

12 + 32 + 52 + 72 + 92 + 112 + 132 + 152 + 172 + 192 + 212 + 232

= 1 + 9 + 25 + 49 + 81 + 121 + 169 + 225 + 289 + 361 + 441 + 529

= 2300

Calculate by formula

n * (2 * n – 1) + 2 * n * (n – 1) * (2 * n – 1)3

= 12 * (2 * 12 – 1) + 2 * 12 * (12 – 1) * (2 * 12 – 1)3

= 12 * 23 + 24 * 11 * 233

= 2300

Calculate by calculator

Enter 12 into the input box and select odd number data type, then click Calculate button, as shown in the figure, the answer is also 2300.

calculate the sum of squares of first 12 odd numbers.

The sum of squares of first N prime numbers

For example, calculate the sum of squares of first 8 prime numbers.

Calculate by manual

First 8 prime numbers are 2, 3, 5, 7, 11, 13, 17 and 19. The sum of squares of them is:

22 + 32 + 52 + 72 + 112 + 132 + 172 + 192

= 4 + 9 + 25 + 49 + 121 + 169 + 289 + 361

= 1027

Calculate by calculator

Enter 8 into the input box and select prime number data type, then click Calculate button, as shown in the figure, the answer is also 1027.

calculate the sum of squares of first 8 prime numbers.

The sum of squares of first N composite numbers

For example, calculate the sum of squares of first 20 composite numbers.

Calculate by manual

First 20 composite numbers are 4, 6, 8, 9, 10, 12, 14, 15, 16, 18, 20, 21, 22, 24, 25, 26, 27, 28, 30 and 32. The sum of squares of them is:

42 + 62 + 82 + 92 + 102 + 122 + 142 + 152 + 162 + 182 + 202 + 212 + 222 + 242 + 252 + 262 + 272 + 282 + 302 + 322

= 16 + 36 + 64 + 81 + 100 + 144 + 196 + 225 + 256 + 324 + 400 + 441 + 484 + 576 + 625 + 676 + 729 + 784 + 900 + 1024

= 8081

Calculate by calculator

Enter 20 into the input box and select composite number data type, then click Calculate button, as shown in the figure, the answer is also 8081.

calculate the sum of squares of first 20 composite numbers.

Latest calculators

Point-Slope Form Calculator

Standard Form to Slope-Intercept Form Calculator

Slope Intercept Form Calculator

Slope Calculator: Calculate Slope, X-Intercept, Y-Intercept

Reciprocal of Complex Number Calculator

Conjugate Complex Number Calculator

Modulus of Complex Number Calculator

Complex Number Calculator

Profit Percentage Calculator: Calculate Your Profitability Easily

Attendance and Absence Percentage Calculator

Half Calculator

Circular Segment Radius Calculator

Regular Polygon Side Length Calculator

Circular Segment Calculator

Regular Polygon Calculator

0 like
  • 0
  • 0
  • 0
  • 0
CopyRight © MathBz.com All rights reserved.
  • Home
  • About Us
  • Contact Us
  • Privacy Policy and Cookies
Back to top of page