cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

Showing 1-8 of 8 results.

A261246 Positive integers D such that the generalized Pell equation X^2 - D Y^2 = 2 is soluble.

Original entry on oeis.org

2, 7, 14, 23, 31, 34, 46, 47, 62, 71, 79, 94, 98, 103, 119, 127, 142, 151, 158, 167, 191, 194, 199, 206, 223, 238, 239, 254, 263, 271, 287, 302, 311, 322, 334, 343, 359, 367, 382, 383, 386, 391, 398, 431, 439, 446, 463, 478, 479, 482, 487, 503, 511
Offset: 1

Views

Author

Wolfdieter Lang, Sep 06 2015

Keywords

Comments

For the fundamental positive solution x(n)^2 - a(n)*y(n)^2 = 2 see (x(n) = A261247(n), y(n) = A261248(n)), for n >= 1.
Conjecture: The sequence consists of all numbers D not a square and even D = 2*d has odd d with prime factors of the form 1 or 7 (mod 8). Odd D has prime factors of the form 1 or 7 (mod 8) but there is an odd number of primes of the form 7 (mod 8). The following will prove that these conditions for D are necessary in order to have solutions.
This conjecture is false. For the odd D case see the counterexamples in A263010, and for the even D in A264352. - Wolfdieter Lang, Nov 12 2015
If there is a solution for D, D not a square, then only one class of solution exists due to Nagell's Theorem 110, p. 208, because then 2 divides 2*D. All solutions will be proper because 2 is a prime.
For the even prime D = p = 2 the positive fundamental solution is [x(1) = 2, y(1) = 1].
For odd primes D = p there can be solutions only for p == +7 (mod 8), that is p from A007522. Then x and y are both odd. Proof: Consider a solution of x^2 - p*y^2 = 2. The parities of x and y have to be either even and even or odd and odd. For odd x one has x^2 == +1 (mod 8) (because x^2 = 8*T(X) + 1 with x = 2*X+1 and the triangular numbers T = A000217); similarly for y^2 if y is odd. In the even-even case x^2 and y^2 are both congruent to 4 (mod 8). The even-even case leads to 4 - 4*p = 2 (mod 8), excluding all odd p, namely p == 1, 3, 5, 7 (mod 8). The odd-odd case is 1 - p*1 = 2 (mod 8), and p == 1, 3, 5 (mod 8) are excluded. Therefore, only p == 7 (mod 8) qualifies for a solution, and then x and y will be both odd.
For D = p == 7 (mod 8) from A007522 one can test if there exists a fundamental positive solution (at most one class can exist, therefore there is either no solution or just one) [2*U(p)+1, 2*V(p)+1] by checking the two inequalities (see Nagell, eq. (4) and (5), p. 206) 0 <= V(p) < floor((Y(p)/sqrt(X(p) + 1) - 1)/2) and 0 <= U(p) <= floor((sqrt(X(p) + 1) - 1)/2), with the positive fundamental solution [X(p), Y(p)] of X^2 - p*Y^2 = +1. These solutions can be found in (A033313(k), A033317(k)) if A000037(k) is the prime p == 7 (mod 8) one is testing.
For composite even D there are solutions only if D/2 is odd. Proof: If D is even then x has to be even, hence x^2 == 0 (mod 4) and then D*y^2 == -2 (mod 4), hence D cannot be 0 (mod 4). Thus an even D can only be of the form D = 2*d with d odd. The modulo 3 and modulo 5 argument used in the next case will show that d can have only prime factors of the form +1 or -1 (mod 8).
For composite odd D one finds like above that the even-even x and y case is excluded, and the odd-odd case needs D == -1 (mod 8) == 7 (mod 8). Hence a candidate for D is from A004771 - A007522. D cannot have any prime factor p of the form 3 or 5 (mod 8) because otherwise x^2 == 2 (mod p), but the Legendre symbol (2/p) = -1 for such p's (see, e.g., Nagell, Theorem 81, p. 136). For example, D = 15 = 3*5 cannot have a solution. Thus the only candidates for D have prime factors p of the form +1 or +7 (mod 8), with the number of the latter ones being odd. E.g., D = 7*17 = 119 qualifies as a candidate and it has indeed solutions, namely the ones obtainable from the fundamental one [11, 1].
The general proper positive solutions for D(n) = a(n) are obtained from the fundamental ones [x(n), y(n)] given in A261247 and A261248 with the help of powers of the matrix M(n) = [[u(n), D(n)*v(n)], [v(n), u(n)]], where u(n) and v(n) are the positive fundamental solutions of U(n) - D(n)*V(n) = 1, by (x(n; k), y(n; k))^T = M(n)^k (x(n), y(n))^T (T for transposed), for k >= 0. [u(n), v(n)] = [A033313(j(n)), A033317(j(n))] if A000037(j(n)) = D(n) = a(n).
Observation: All degrees (7, 47, 79, 103, 119, 127) of the modular equations derived for solving Ramanujan's question 699 by Galkin & Kozirev (see reference and A318732) are terms of this sequence. - Hugo Pfoertner, Sep 24 2023

Examples

			The first fundamental solutions [x(n), y(n)] are (the first entry gives D(n)=a(n)):
[2, [2, 1]], [7, [3, 1]], [14, [4, 1]],
[23, [5, 1]], [31, [39, 7]], [34, [6, 1]],
[46, [156, 23]], [47, [7, 1]], [62, [8, 1]],
[71, [59, 7]], [79, [9, 1]], [94, [1464, 151]],
[98, [10, 1]], [103, [477, 47]], [119, [11, 1]],
[127, [2175, 193]], [142, [12, 1]],
[151, [41571, 3383]], [158, [88, 7]],
[167, [13, 1]], [191, [2999, 217]],
[194, [14, 1]], [199, [127539, 9041]],
[206, [244, 17]], [223, [15, 1]], [238, [108, 7]],
[239, [2489, 161]], ...
		

References

  • J. W. S. Cassels, Rational Quadratic Forms, Cambridge, 1978; see Chap. 3.
  • V. M. Galkin, O. R. Kozyrev, On an algebraic problem of Ramanujan, pp. 89-94 in Number Theoretic And Algebraic Methods In Computer Science - Proceedings Of The International Conference, Moscow 1993, Ed. Horst G. Zimmer, World Scientific, 31 Aug 1995
  • T. Nagell, Introduction to Number Theory, Chelsea Publishing Company, New York, 1964.

Crossrefs

See also A038873 (2 and primes == +-1 mod 8), A001132.

Programs

  • Mathematica
    Select[Range[600], False =!= Reduce[x^2 - # y^2 == 2, {x, y}, Integers] &] (* Giovanni Resta, Aug 12 2017 *)

A263012 Odd numbers D not a square that admit proper solutions (x, y) to the Pell equation x^2 - D*y^2 = +8 with both x and y odd.

Original entry on oeis.org

17, 41, 73, 89, 97, 113, 137, 161, 193, 217, 233, 241, 281, 313, 329, 337, 353, 409, 433, 449, 457, 497, 521, 553, 569, 593, 601, 617, 641, 673, 713, 721, 769, 809, 833, 857, 881, 889, 929, 937, 953, 977, 1033, 1049, 1057, 1081, 1097, 1153, 1169, 1193, 1201, 1217, 1241, 1249, 1289, 1321, 1337, 1361, 1409, 1433, 1457, 1481, 1513, 1553, 1561, 1609, 1633, 1649, 1657, 1673, 1697, 1721, 1753, 1777, 1801, 1817, 1841, 1873, 1889, 1913, 1921, 1993
Offset: 1

Views

Author

Wolfdieter Lang, Nov 17 2015

Keywords

Comments

These are the nonsquare odd numbers D that admit proper solutions (x, y) to the generalized Pell equation x^2 - D*y^2 = +8 with both x and y odd. They are given by D == 1 (mod 8), not a square, no prime factors 3 or 5 (mod 8) in the composite case (see A263011), and they are not exceptional values which are given in A264348. Up to the number 2000 these exceptional values are 257, 401, 577, 697, 761, 1009, 1129, 1297, 1393, 1489, 1601, 1897. [sequence reference corrected by Peter Munn, Jun 19 2020]
The corresponding positive proper fundamental solutions (x1(D), y1(D)) for the first class are given in A264349 and A264350. There always seem to be two conjugacy classes. The positive proper fundamental solution of the second class (x2, y2) is, for given D, obtained by applying the matrix M(D) = matrix[[x0(D), D*y0(D)],[y0(D), x0(D)]] on (x1(D), -y1(D))^T (T for transposed). Here (x0(D), y0(D)) is the positive fundamental solution of the Pell equation x^2 - D*y^2 = +1 (which is always proper). See the appropriate entries of A033313 and A033317 for these solutions. There would be only one class (the ambiguous case) if this application of M(D) would lead to (x1(D), y1(D))^T. This does not seem to happen. The positive proper fundamental solutions (x2(D), y2(D)) of the second class are given in A264351 and A264353.
The case of odd D with both y and x even leads to improper solutions obtained from the +2 Pell equation (see A261246), e.g., D = 7 has the fundamental positive improper solution (6, 2) = 2*(3, 1) obtained from the proper solution (3, 1) of x^2 - 7*y^2 = +2 (see A261247(2) and A261248(2)). There is only one class of solutions (ambiguous case).
The case of even D with y odd and x even needs D == 0 (mod 4). See 4*A261246 = A264354 for the even D values that admit proper solutions. There appear one or two classes of solutions in this case.
The improper solutions with even D and both x and y even, come from X^2 - D*Y2 = +2 which needs D/2 odd without prime factors 3 or 5 (mod 8) in the composite case. Such D values that do not admit a solution are called exceptional and are given by A264352.
This is a proper subsequence of A263011.

Examples

			The first positive fundamental solutions of the first class (x1(n), y1(n)) are (the first entry gives D(n) = a(n)):
  [17, (5, 1)], [41, (7, 1)], [73, (9, 1)],
  [89, (217, 23)], [97, (69, 7)], [113, (11, 1)], [137, (199, 17)], [161, (13, 1)],
  [193, (56445, 4063)], [217, (15, 1)],
  [233, (6121, 401)], [241, (46557, 2999)],
  [281, (17, 1)], [313, (9567711, 540799)],
  [329, (127, 7)], [337, (73829571, 4021753)], ...
The first positive fundamental solutions of the second class (x2(n), y2(n)) are:
  [17, (29, 7)], [41, (1223, 191)],
  [73, (1040241, 121751)], [89, (9217, 977)],
  [97, (3642669, 369857)], [113, (445435, 41903)], [137, (122279, 10447)], [161, (3667, 289)],
  [193, (441089445, 31750313)],
  [217, (1034361, 70217)], [233, (700801, 45911)], [241, (866477098293, 55814696449)], ...
		

Crossrefs

A261248 Positive fundamental solution y(n) of the generalized Pell equation X^2 - D(n) Y(n) = 2 with D(n) = A261246(n).

Original entry on oeis.org

1, 1, 1, 1, 7, 1, 23, 1, 1, 7, 1, 151, 1, 47, 1, 193, 1, 3383, 7, 1, 217, 1, 9041, 17, 1, 7, 161, 1, 23, 20687, 1, 119, 233, 1, 437071, 617, 1, 7199, 20783, 7, 17, 137, 1, 593, 1, 497, 731153, 1839433, 79, 1, 326471, 7, 2863
Offset: 1

Views

Author

Wolfdieter Lang, Sep 06 2015

Keywords

Comments

For the corresponding positive fundamental solution x(n) see A261247(n).
[x(n), y(n)] gives the positive proper fundamental solution for D(n) = A261246(n), for n >= 1.
See the comments on A261246 for this generalized Pell equation.

Examples

			See A261246.
		

Crossrefs

A264354 Even nonsquare D values which admit proper solutions to the Pell equation x^2 - D*y^2 = +8.

Original entry on oeis.org

8, 28, 56, 92, 124, 136, 184, 188, 248, 284, 316, 376, 392, 412, 476, 508, 568, 604, 632, 668, 764, 776, 796, 824, 892, 952, 956, 1016, 1052, 1084, 1148, 1208, 1244, 1288, 1336, 1372, 1436, 1468, 1528, 1532
Offset: 1

Views

Author

Wolfdieter Lang, Nov 18 2015

Keywords

Comments

This is 4*A261246.
The proper positive fundamental solution (x1(n), y1(n)) of the first class is given by (2*A261247(n), A261248(n)) for D(n) = a(n), n >= 1. If there are two classes the proper positive fundamental solution (x2(n), y2(n)) for the second class is given by (A264357(n), A264386(n)) for D(n). If the fundamental solutions of the two classes coincide then there is only one class (the ambiguous case) for these D(n) values. It is conjectured that there are no more than two classes. For the computation of (x2(n), y2(n)) from (x1(n), -y1(n)) by application of the matrix M(n) for D(n) see a comment under A263012.
D = 8, 56, 136, 184, 248, 376, 392, 568, 632, 776, 824, 952, 1016, 1208, 1288, 1336, 1528, ... have only one class of solution, because for them (x1, y1) = (x2, y2). These D values are the ones with x1(n) = 2*sqrt(x0(n)+1) and y1(n) = 2*y0(n) / sqrt(x0(n)+1) where (x0(n), y0(n)) are the positive fundamental solution of the +1 Pell equation with D = D(n). These are the upper bounds of the inequalities, eqs. (4) and (5) given in the Nagell reference on p. 206. E.g., D = 184 = A000037(171) = a(8) with x0(8) = A033313(171) = 24335 and y0(8) = A033317(171) = 1794 leads to x1(8) = 2*sqrt(24336) = 312 and y1(8) = 2*1794/sqrt(24336) = 23. These D numbers with only one class of proper solutions are the entries which are divisible by 8, that is four times the even numbers of A261246.

Examples

			The first positive proper fundamental solutions of the first class are, when written as [D(n), (x1(n), y1(n))]:
[8, (4, 1)], [28, (6, 1)], [56, (8, 1)], [92, (10, 1)], [124, (78, 7)], [136, (12, 1)], [184, (312, 23)], ...
The first positive proper fundamental solutions of the second class [D(n), (x2(n), y2(n))] are (if the values for both classes coincide there is only one class):
[8, (4, 1)], [28, (90, 17)], [56, (8, 1)], [92, (470, 49)], [124, (237042, 21287)], [136, (12, 1)], [184, (312, 23)], ...
		

References

  • T. Nagell, Introduction to Number Theory, Chelsea Publishing Company, New Tork, 1964, p. 206.

Crossrefs

Cf. A000037, A033313, A033317, A261246, A263012 (odd D), A261247 (x1/2), A261248 (y1), A264438 (x2), A264439 (y2), A264355.

Formula

a(n) = 4*A261246(n).

A264352 Exceptional even numbers D that do not admit a solution to the Pell equation X^2 - D Y^2 = +2.

Original entry on oeis.org

82, 146, 178, 226, 274, 434, 466, 514, 562, 578, 626, 658, 818, 914, 994, 1042, 1106, 1138, 1202, 1234, 1394, 1426, 1522, 1582, 1618, 1666, 1714, 1778, 1874, 1906, 1918, 2066, 2098, 2162, 2194, 2258, 2306, 2386, 2402, 2434, 2482, 2578, 2642
Offset: 1

Views

Author

Wolfdieter Lang, Nov 12 2015

Keywords

Comments

These are the even numbers D = 2*d with odd d having no prime factors 3 or 5 (mod 8), and do not represent +2 by the indefinite binary quadratic form X^2 - D*Y^2 (with discriminant 4*D > 0).
These even D numbers satisfy the necessary condition given in A261246. This condition is not sufficient as the present numbers show.
a(n)/2 = d(n) is 7 (mod 8) for n = 24, 31, 48, 55, 57, ...
The numbers D which admit solutions to the Pell equation X^2 - D Y^2 = +2 are given by A261246.
The exceptional odd D numbers are given in A263010.

Crossrefs

A263010 Exceptional odd numbers D that do not admit a solution to the Pell equation X^2 - D Y^2 = +2.

Original entry on oeis.org

791, 799, 943, 1271, 1351, 1631, 1751, 1967, 2159, 2303, 2359, 2567, 3143, 3199, 3503, 3703, 3983, 4063, 4439, 4471, 4559, 4607, 4711, 5047, 5183, 5207, 5359, 5663, 5911, 5983, 6511, 6671, 6839, 7063, 7231, 7663, 7871, 8183, 8407, 8711, 9143, 9271, 9751, 9863, 10183, 10367
Offset: 1

Views

Author

Wolfdieter Lang, Nov 10 2015

Keywords

Comments

These are the odd numbers 7 (mod 8), not a square, that have in the composite case no prime factors 3 or 5 (mod 8), and do not represent +2 by the indefinite binary quadratic form X^2 - D*Y^2 (with discriminant 4*D > 0).
The numbers D which admit solutions of the Pell equation X^2 - D Y^2 = +2 are given by A261246.
Necessary conditions for nonsquare odd D were shown there to be D == 7 (mod 8), without prime factors 3 or 5 (mod 8) in the composite case. Thus only prime factors +1 (mod 8) and -1 (mod 8) can appear, and the number of the latter is odd. It has been conjectured that all such numbers D appear in A261246, but this conjecture is false as the present sequence shows.
All entries seem to be composite. The first numbers are 791 = 7*113, 799 = 17*47, 943 = 23*41, 1271 = 31*41, 1351 = 7*193, 1631 = 7*233, ...
For counterexamples to the conjecture in A261246 for even D see A264352.

Crossrefs

A264438 One-half of the x member of the positive proper fundamental solution (x = x2(n), y = y2(n)) of the second class for the Pell equation x^2 - D(n)*y^2 = +8 for even D(n) = A264354(n).

Original entry on oeis.org

2, 45, 4, 235, 118521, 6, 156, 665, 8, 410581, 1431, 1464, 10, 217061235, 2629, 20578212225, 12, 143681684300109, 88, 4355, 53946009001, 14, 4149148875801021, 244, 6705, 108, 30839304871, 16, 103789115, 78990793279586649, 9775, 2068, 138751721731, 18, 7987764, 2984191388685, 13661, 5246209297401255, 406200, 5142295
Offset: 1

Views

Author

Wolfdieter Lang, Nov 19 2015

Keywords

Comments

The corresponding y2(n) value is given by A264439(n). The positive fundamental solution (x1(n), y1(n)) of the first class is given by (2*A261247(n), A261248(n)).
There is only one class of proper solutions for those D = D(n) = A264354(n) that lead to (x1(n), y1(n)) = (x2(n), y2(n)).
See A264354 for comments and examples.

Examples

			n=2: D(2) = 28, (2*45)^2 - 28*17^2 = +8. The first class solution was (2*3)^2 - 28*1^2 = +8. This is a D case with two classes of proper solutions.
n=3: D(3) = 56, (2*4)^2 - 56*1^2 = +8. The first class has the same solution, therefore this D has only one class of proper solutions.
		

Crossrefs

A264439 The y member of the positive proper fundamental solution (x = x2(n), y = y2(n)) of the second class for the Pell equation x^2 - D(n)*y^2 = +8 for even D(n) = A264354(n).

Original entry on oeis.org

1, 17, 1, 49, 21287, 1, 23, 97, 1, 48727, 161, 151, 1, 21387679, 241, 1826021057, 1, 11692649642023, 7, 337, 3903396217, 1, 294125365483681, 17, 449, 7, 1994828801, 1, 6399911, 4798348971487087, 577, 119, 7867888313, 1, 437071, 161131189369, 721, 273849896195263, 20783, 262759
Offset: 1

Views

Author

Wolfdieter Lang, Nov 19 2015

Keywords

Comments

The corresponding x2(n) value is given by A264438(n). The positive fundamental solution (x1(n), y1(n)) of the first class is given by (2*A261247(n), A261248(n)).
There is only one class of proper solutions for those D = D(n) = A264354(n) values leading to (x1(n), y1(n)) = (x2(n), y2(n)).

Examples

			n=1: D(1) = 8, (2*2)^2 - 8*1^2 = +8. The first class positive fundamental solution was identical, thus there is only one class of proper solutions for D = 8.
n=5: D(5) = 124, (2*118521)^2 - 124*21287^2 = +8. The first class solution was (2*39)^2 - 124*7^2 = +8. Thus there are two classes, conjugated to each other for this D value.
		

Crossrefs

Cf. A264354, A261247 (x1/2), A261248 (y1), A264438 (x2/2), A263012 (odd D), A264349, A264350, A264351, A264353.
Showing 1-8 of 8 results.