Square Numbers
Some of you may have studied the progression of square numbers, and discovered the rather elegant pattern which connects them - namely, that between two adjacent square numbers, the difference is always going to be an odd number; and with each step to the next square number, the difference always increases. This has always been a useful guide in predicting when each next square number should be; but what is the formula by which you can work out what that next square number is?
Well, let's look at the smallest square numbers - the square numbers for 12, 22, 32, 42 and 52.
Here are the first five square numbers, and for completion let's throw in 02 as well:-
Number | Square | Difference |
---|---|---|
02 | 0 | N/A |
12 | 1 | 1 |
22 | 4 | 3 |
32 | 9 | 5 |
42 | 16 | 7 |
52 | 25 | 9 |
As you can see, not only is the difference an odd number each time; it is a unique odd number. Other than 1 and 4, no other pair of square numbers will ever be found that will differ by 3; beside 25 and 36, no other pairing of square numbers will ever have a difference of 11.
The very specific progression between square numbers reveals a pattern, which can be formulated. But what is the formula for this difference between the squares?
Let's look at a pair of square numbers; 1 and 4, 12 and 22. The difference, 3, can be considered (2x1) + 1. Look at the difference between 16 and 25, or 42 and 52 respectively. 9 = (2x4) + 1.
Now let's abstract this to the case of the number n, where
and
The difference between Qn and Qn+1 is given as:-
= (n + 1)(n + 1) - n2
= n2 + 2n + 1 - n2
Qn+1 - Qn = 2n + 1.
Let's take this formula to look at the difference between two adjacent squares for an arbitrary value, say 372. What is the next square number, 382, going to be?
Using the formula 2n + 1, and substituting n = 37, we arrive at:-
A quick calculation, and I work out that 372 = 1369. Adding 75 to that, we get 1444 - and the square root of 1444 is ... 38.
One last test, just in case; two adjacent large numbers, 13365 and 13366.
(2 x 13365) + 1 = 26731
178623225 + 26731 = 178649956
sqrt(178649956) = 13366.
So there you have it. If you know one square number n2 and its corresponding square root n, you can work out its adjacent neighbour by calculating the difference, 2n + 1.
But there's more. If you know the number n, you can work out the neighbour to n + 1, n + 2, n + 3 ... and also go back, subtracting 2(n-1) + 1, 2(n-2) + 1, 2(n-3) + 1 ..., always using the same formula, each time. Handy to know, say, if you were challenged to calculate not only, say, 9992 (998,001 of course), but also the next ten square numbers above and below it ...
Cube Numbers
Does a similar relationship exist between adjacent cube numbers - between, say, 43 and 53, or between 17413 and 17423, or between n3 and (n + 1)3?
Let's see.
Number | Square | Difference |
---|---|---|
03 | 0 | N/A |
13 | 1 | 1 |
23 | 8 | 7 |
33 | 27 | 19 |
43 | 64 | 37 |
53 | 125 | 61 |
This pattern is not so easy to spot, so let's look at the difference R between Rn and Rn+1 where
and
R = Rn+1 - Rn
= (n + 1)3 - n3
= (n + 1)(n + 1)(n + 1) - n3
= n3 + 3n2 + 3n + 1 - n3
= 3n2 + 3n + 1
= 3n(n + 1) + 1.
R = 3n(n + 1) + 1.
Can we confirm that this formula works? Let's try three examples, namely 53 and 63, 743 and 753, and 17413 and 17423.
R = 3 x 5 (5 + 1) + 1
R = (15 x 6) + 1
R = 91
125 + R = 216 = 63.
Next, let's look at 743 and 753;
R = (3 x 74 x 75) + 1
R = (222 x 75) + 1
R = 16651
1253 + R = 405224 + 16651
= 421875
= 753.
And now the last one, just to make sure:-
R = ((1741 x 3) x 1742) + 1
= (5223 x 1742) + 1
= 9098466 + 1
= 9098467
5277112021 + 9098467 = 5286210488 = 17423.
Pretty conclusive, then.
Conclusion
So, then, it's pretty clear that to determine the neighbouring number for any given square number N = n2, you can use the formula
and to determine the neighbour of any cube number N = n3, you can use the formula
I leave the determination of the formulae to calculate the differences between adjacent integers of higher powers to the reader. One hint I will leave you with: look to Pascal's Triangle.
No comments:
Post a Comment
"And if we have unearned luck, now to scape the serpent's tongue, we will make amends ere long. Else the Puck a liar call ..."
So speak.