The average number of ways we can express a natural number π as the sum of two squaresβ¦
We are not looking for an answer for some particular π. We are not looking for a general formula.
We just want to know⦠on an average what is this equal to.
Weβre going to be fairly generous about what we count here,
So for π=1 -> there are four ways:
0^2+1^2,
0^2+(β1)^2,
1^2+0^2
and (β1)^2+0^2.
There are another four solutions for π=2:
But then there are no ways to express 3 as the sum of the squares of two natural numbers.
In fact (I claim, with exactly zero formal proof) most numbers canβt be expressed like this β but then there are 160 ways to express 4,005,625 as the sum of the squares of two natural numbers.
You will find however that there are 3,184,193 un-expressable numbers along the way.
So what does that mess of zeroes and hundreds average out at ?
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.
It is a property of the sum of squares function r 2 β ( n ) that k = 1 β n β r 2 β ( k ) = Ο n + O ( n β ) n β β and hence n β β lim β n 1 β k = 1 β n β r 2 β ( k ) = Ο β which is the nearest thing we can get to calculating the expected value of r 2 β .