Skip to content

AngelloMaggio/sumofsquares

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sumofsquares

A Flask server implementation to make a query that will yield the difference between the sum of the squares of the first n natural numbers and the square of the sum of the same first n natural numbers, where n is guaranteed to be no greater than 100.

Example:

n=10

The sum of the squares of the first ten natural numbers is:

1^2 + 2^2 + ... + 10^2 = 385

The square of the sum of the first ten natural numbers is:

(1 + 2 + ... + 10)^2 = 552 = 3025

Hence the difference between the sum of the squares of the first ten natural numbers and the square of the sum is 3025 − 385 = 2640.

A natural number is a positive integer (whole numbers) e.g. 1, 2, 3, .. 100, etc.

About

A Flask server to query for sums of squares

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published