1. Introduction
The study of integer squares equal to sums of consecutive squared integers can be dated back to 1873 when Lucas stated [
11] that
is an integer square only for
and 24. Lucas proposed later in 1875 [
12] the well known cannonball problem, which was proven by several authors [
2,
10,
13,
14,
19,
20,
33].
Instead of starting at 1, finding all values of
a for which the sum of
M consecutive integer squares starting from
is itself an integer square
is a more general problem that was addressed by several authors (see e.g. [
1,
3,
8,
24]). More recently, this author showed [
26] that there are no integer solutions if
or
and that there are integer solutions for non squared integer
M congruent to
or
, or to
or
, or to
, and for squared integer
M congruent to
.
In this paper, we investigate and characterize the properties of groupings of pairs of a values for a same value of M that are found around inclined straight lines of equation in the plot for rational values of .
2. Linear features in the plot
For
, the sum of
M consecutive squared integers
equaling a squared integer
can be written [
28] as
For
and
, there are only 4078 couples of values of
a and
M among the approximately
possibilities such that (
1) holds.
Figure 1 shows the distribution of these 4078 couples in a
plot where several groupings of interest are seen.
The most visible is the grouping around a straight line of equation
where
c is a constant, corresponding to a double infinite family of
a values that starts with the identity and the Pythagorean relations
for a same value of
and respectively for
and 3. This double infinite family has the characteristics that couples of
a values correspond to a same value of
M. There are other similar groupings and double infinite families around straight lines of general equation
for certain rational values of
and where
is a constant different for each value of
. Only groupings around inclined lines are considered as the limit cases of
and
corresponding to groupings around respectively vertical and horizontal lines are not treated here. The horizontal case for which one or several solutions in
a exist for each values of
M was investigated in [
26,
27,
28].
Definition 1.
For , for a given value of , two values of are called a pair if for a same value of and ,
hold, where is a linear integer function of k for each value of μ, yielding
where the upper or lower sign is taken for or 2.
The two families of
and
are characterized for each values of
around the straight line of equation
in the following theorem. However, relations (
4) to (
6) hold only for certain values, called allowed values, of
and of
that are determined further.
Theorem 1.
For , , for allowed values of , let be an irreducible fraction; if is a pair of values for a same value of and if
holds , then the sums of squares of consecutive integers for to are always equal to squared integers , with
where the upper (respectively lower) sign is taken for (resp. 2).
Proof. Let
,
,
forming an irreducible fraction, i.e.
. Let further
be a yet unknown integer function of
k for each value of
. Replacing in the second equality of (
1)
M by
and
a by
from (
6) yields successively
where the upper (respectively lower) sign in (
10) is taken for
(resp. 2). For the expression between brackets in (
10) to be a square, replace in (
10)
by
from (
7), yielding immediately (9). Replacing
(
11) in (
6) yields then (
8). □
In addition, from Theorem 2, the following relations hold
3. Parametric expressions of , , ,
Above results hold only for certain allowed values of
and of
, that can be determined as follows. Relation (
7) reads also
It was shown [
30] that for (
17) to hold:
- , and or , or , and ;
- or , and or and either and , or and , and .
Parametric expressions of , , and in function of , and initial values are found as follows.
Theorem 2.
For , , , , for allowed values of and for pairs , is a linear function of k, and are quadratic functions of k, and is a cubic function of k, as follows
where for or and for and where the upper (respectively lower) sign is taken for (resp. 2).
Proof. For
,
,
,
, for allowed values of
and for pairs
, let
(5) be a linear function of
k,
where
is the initial value for
of the difference (5) and
x an integer function to be defined for some parameters. Then (
7) yields
The second term on the right of (
22) is
by (
7).
(i) If
or
, as
,
must divide
x in the first term of (
22), yielding then (
18) and (19) with
.
(ii) If
, simplifying the first term by 3, (
22) reads
As
,
is a factor of
x. However, as
or
for
,
and as
,
x must be replaced by
, yielding then (
18) and (19) with
.
(iii) Further, replacing
and
by (
18) and (19) in
from (
6) and in
(9) with (
11), yield directly (20) and (21) with the upper (or lower) sign for
(or 2). □
4. Finding allowed values of and
Finding the allowed values of
,
and
requires solving the generalized Pell equation (
17) for
in variables
and
.
In general, for
and
D square free (i.e.
), a generalized Pell equation
admits either no solution, or one or several fundamental solution(s)
and also one or several infinite branches of solutions
. Several methods exist to find the fundamental solutions of the generalized Pell equation (see [
15,
19,
31]). Two methods are used further: first a brute force search method, i.e. trying several values of
Y until the smallest
is found; second, Matthews’ method [
16] based on an algorithm by Frattini [
4,
5,
6] using Nagell’s bounds [
18,
21]. Once fundamental solution(s)
have been found one way or another, noting
the fundamental solutions of the related simple Pell equation
, the other solutions
can be found by
for a proper choice of sign ± [
17], which can be written also in function of Chebyshev’s polynomials [
28]
where
and
are Chebyshev polynomials of the first and second kinds evaluated at
.
The generalized Pell equation (
17) can be written as
with
,
,
and
, and where
if
or
and
if
.
To use Matthews’ method [
16], the parameters
D and
N must be fixed with values of
and
that can be chosen from the allowed congruent values (see
Section 3) and be tried one by one until fundamental solutions are found. Alternatively, fixing the values of
and
, a brute force search method can be used to find
for the smallest value of
, with from (
11)
Relation (
28) yields then the allowed values of
and
given in Table 2for
, for
(
1)
and in [
29] for
, for
.
Once a set of values has been found for
and
as fundamental solution(s) of the generalized Pell equation (
27), other allowed values for
and
can be found from the other solutions of (
27) using the values of
and
by (
25) and (26) written as
Example 1.
For and , and from Table 1. Using and δ as constants in (27) with , it reduces to a simple Pell equation (see e.g. [7,9,23,25]) which admits the single fundamental solution or and an infinity of other solutions that can be found by
where are the Pell numbers [32] of even indices minus one. These new values of for define new groupings around straight lines of general equation , with the initial value .
For , , , , , (19) to (21) yield
,
, ,
, ,
and values of
,
and
for
are given in Table 2.
Table 2.
Values of , , for and
Table 2.
Values of , , for and
|
|
|
|
k |
|
|
|
|
|
|
|
|
|
0 |
2 |
0 |
3 |
11 |
18 |
38 |
312 |
15 |
38 |
-1 |
23 |
17 |
7 |
218 |
590 |
501 |
5784 |
532 |
433 |
1 |
59 |
22 |
38 |
458 |
1081 |
1210 |
12408 |
962 |
1107 |
-2 |
122 |
73 |
50 |
1079 |
2797 |
2599 |
28824 |
2513 |
2292 |
2 |
194 |
83 |
112 |
1559 |
3779 |
4017 |
42072 |
3373 |
3640 |
-3 |
299 |
168 |
132 |
2594 |
6639 |
6332 |
69432 |
5958 |
5615 |
3 |
407 |
183 |
225 |
3314 |
8112 |
8459 |
89304 |
7248 |
7637 |
-4 |
554 |
302 |
253 |
4763 |
12116 |
11700 |
127608 |
10867 |
10402 |
4 |
698 |
322 |
377 |
5723 |
14080 |
14536 |
154104 |
12587 |
13098 |
-5 |
887 |
475 |
413 |
7586 |
19228 |
18703 |
203352 |
17240 |
16653 |
5 |
1067 |
500 |
568 |
8786 |
21683 |
22248 |
236472 |
19390 |
20023 |
-6 |
1298 |
687 |
612 |
11063 |
27975 |
27341 |
296664 |
25077 |
24368 |
6 |
1514 |
717 |
798 |
12503 |
30921 |
31595 |
336408 |
27657 |
28412 |
-7 |
1787 |
938 |
850 |
15194 |
38357 |
37614 |
407544 |
34378 |
33547 |
7 |
2039 |
973 |
1067 |
16874 |
41794 |
42577 |
453912 |
37388 |
38265 |
-8 |
2354 |
1228 |
1127 |
19979 |
50374 |
49522 |
535992 |
45143 |
44190 |
8 |
2642 |
1268 |
1375 |
21899 |
54302 |
55194 |
588984 |
48583 |
49582 |
-9 |
2999 |
1557 |
1443 |
25418 |
64026 |
63065 |
682008 |
57372 |
56297 |
9 |
3323 |
1602 |
1722 |
27578 |
68445 |
69446 |
741624 |
61242 |
62363 |
-10 |
3722 |
1925 |
1798 |
31511 |
79313 |
78243 |
845592 |
71065 |
69868 |
10 |
4082 |
1975 |
2108 |
33911 |
84223 |
85333 |
911832 |
75365 |
76608 |
Example 2.
For and , and from Table 1. Using and δ as constants in (27) with yield the generalized Pell equation . Using Matthews’ method [16] yields the single fundamental solution which is of no use. However, as the right hand term is a squared integer, the equation can be rewritten as a simple Pell equation , which admits the fundamental solution or and an infinity of other solutions
For , , , , , (19) to (21) yield (see Table 2)
,
, ,
,
.
Example 3.
For and , and [29]. Using and δ as constants in (27) with yields , which by [16] has two fundamental solutions and , yielding and . The fundamental solutions of the related simple Pell equation are . Other values of can be found on the two infinite branches corresponding to these two fundamental solutions by (29) and (30) as
for the first fundamental solution, and
for the second fundamental solution. For , , , , , (19) to (21) yield (see Table 2)
,
, ,
,
.
5. Conclusions
It is shown that regular linear features exist in the distribution of couples of values a and M in the plot, where a and M are the first term and the number of terms in sums of consecutive squared integers equal to integer squares. These regular features correspond to groupings of pairs of a values for successive same values of M around straight lines of equation for positive rational values of .
For allowed values of and such as and or , if holds and for pairs , then the sums of consecutive squared integers starting with or are always equal to squared integers or . Parametric equations are found in function of : linear for , quadratic for , and , and cubic for and .
The allowed values of and of the difference are found by solving the generalized Pell equation and further allowed values of and can be calculated for fixed values of and using Chebyshev polynomials.
Notes
1 |
[ 22] gives all values of such that is prime for which ( 28) holds. |
References
- U. Alfred, Consecutive integers whose sum of squares is a perfect square, Mathematics Magazine, 19-32, 1964.
- W.S. Anglin, The Square Pyramid Puzzle, American Mathematical Monthly, 97, 120-124, 1990.
- L. Beeckmans, Squares Expressible as Sum of Consecutive Squares, The American Mathematical Monthly, Vol. 101, No. 5, 437-442, May 1994.
- G. Frattini, Dell’analisi indeterminata di secondo grado, Periodico di Mat. VI, 169–180, 1891.
- G. Frattini, A complemento di alcuni teore mi del sig. Tchebicheff, Rom. Acc. L. Rend. 5, I No. 2, 85-91, 1892.
- G. Frattini, Dell’analisi indeterminata di secondo grado, Periodico di Mat. VII, 172–177, 1892.
- J.L. Lagrange, Solution d’un Problème d’Arithmètique, in Oeuvres de Lagrange, J.-A. Serret (ed.), Vol. 1, Gauthier-Villars, Paris, 671–731, 1867.
- M. Laub, Squares Expressible as a Sum of n Consecutive Squares, Advanced Problem 6552, American Mathematical Monthly, 97, 622-625, 1990.
- H. W. Lenstra Jr., Solving the Pell Equation, Notices of The AMS, Vol. 49, Nr 2, 182-192, 2002.
- W. Ljunggren, New solution of a problem proposed by E. Lucas, Norsk Mat. Tid. 34, 65-72, 1952.
- E. Lucas, Recherches sur l’Analyse Indeterminèe, Moulins, p. 90, 1873.
- E. Lucas, Question 1180, Nouvelles Annales de Mathèmatiques, Sèrie 2, 14, 336, 1875.
- E. Lucas, Solution de la Question 1180, Nouvelles Annales de Mathèmatiques, Sèrie 2, 15, 429-432, 1877.
- D.G. Ma, An Elementary Proof of the Solutions to the Diophantine Equation 6y2=x(x+1)(2x+1), Sichuan Daxue Xuebao, No. 4, 107-116, 1985.
- K.R. Matthews, The Diophantine Equation x2-Dy2=N, D>0, in integers, Expositiones Mathematicae, 18, 323-331, 2000.
- K. Matthews, Quadratic diophantine equations BCMATH programs, http://www.numbertheory.org/php/main_pell.html, last accessed 28 December 2023.
- K. Matthews, The Diophantine Equation x2-Dy2=N, http://www.numbertheory.org/PDFS/patz5.pdf, last accessed 28 December 2023.
- K. Matthews, J. Robertson, On the converse of a theorem of Nagell and Tchebicheff, http://www.numbertheory.org/PDFS/nagell2.pdf, last accessed 28 December 2023.
- R.A. Mollin, Fundamental Number Theory with Applications, CRC Press, New York, 294-307, 1998.
- M. Moret-Blanc, Question 1180, Nouvelles Annales de Mathèmatiques, Sèrie 2, 15, 46-48, 1876.
- T. Nagell, Introduction to Number Theory, Wiley, New York, 195-212, 1951.
- P. Nambi, Numbers n such that 3*n⌃2 + 1 is prime, Sequence A111051 in The On-line Encyclopedia of Integer Sequences, published electronically at http://oeis.org, last accessed 28 December 2023.
- J.J. O’Connor and E.F. Robertson, Pell’s equation, JOC/EFR February 2002, https://mathshistory.st-andrews.ac.uk/HistTopics/Pell/, last accessed 28 December 2023.
- S. Philipp, Note on consecutive integers whose sum of squares is a perfect square, Mathematics Magazine, 218-220, 1964.
- V. Pletser, On continued fraction development of quadratic irrationals having all periodic terms but last equal and associated general solutions of the Pell equation, Journal of Number Theory, Vol. 136, 339–353, 2013.
- V. Pletser, Congruence conditions on the number of terms in sums of consecutive squared integers equal to squared integers, ArXiv, http://arxiv.org/abs/1409.7969, 29 September 2014.
- V. Pletser, Additional congruence conditions on the number of terms in sums of consecutive squared integers equal to squared integers, ArXiv, http://arxiv.org/pdf/1409.6261v1.pdf, 20 August 2014.
- V. Pletser, Finding all squared integers expressible as the sum of consecutive squared integers using generalized Pell equation solutions with Chebyshev polynomials, ArXiv, http://arxiv.org/abs/1409.7972, 29 September 2014.
- V. Pletser, Fundamental solutions of the generalized Pell equation δf2-Mη+δ2=δ2M+1/3 for 0<η,δ<100, Research Gate, DOI: 10.13140/2.1.1766.7208, https://www.researchgate.net/publication/264496057_Fundamental_ solutions_of_the_generalized_Pell_equation_%28f%292-M%28%292_2%28M1%293_for_0__100?ev=prf_pub, August 2014.
- V. Pletser, Congruent conditions on the number of terms, on the ratio number of terms to first terms and on the difference of first terms for sums of consecutive squared integers equal to squared integers, ArXiv, http://arxiv.org/abs/1410.0727, 3 October 2014.
- J.P. Robertson, Solving the generalized Pell equation X2-DY2=N, 31 July 2004 (see https://studylib.net/doc/18752934/solving-the-generalized-pell-equation-x2-%E2%88%92-dy-2-%3D-n-intro..., last accessed 28 December 2023).
- N.J.A. Sloane, Pell numbers, Sequence A000129 in The On-line Encyclopedia of Integer Sequences, published electronically at http://oeis.org, last accessed 28 December 2023.
- G.N. Watson, The Problem of the Square Pyramid, Messenger of Mathematics, 48, 1-22, 1918.
|
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2023 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (http://creativecommons.org/licenses/by/4.0/).