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-3 of 3 results.

A031396 Numbers k such that Pell equation x^2 - k*y^2 = -1 is soluble.

Original entry on oeis.org

1, 2, 5, 10, 13, 17, 26, 29, 37, 41, 50, 53, 58, 61, 65, 73, 74, 82, 85, 89, 97, 101, 106, 109, 113, 122, 125, 130, 137, 145, 149, 157, 170, 173, 181, 185, 193, 197, 202, 218, 226, 229, 233, 241, 250, 257, 265, 269, 274, 277, 281, 290, 293, 298
Offset: 1

Views

Author

Keywords

Comments

Terms are divisible neither by 4 nor by a prime of the form 4*k + 3 (although these conditions are not sufficient - compare A031398). - Lekraj Beedassy, Aug 17 2005
This is the set of integer solutions of all quadratic forms m^2*x^2 -/+ b*x + c with discriminant b^2 - 4*m^2*c = -4 where m is any term of A004613. - Klaus Purath, Jun 18 2025

References

  • Harvey Cohn, "Advanced Number Theory".

Crossrefs

Equals {1} U A003814.
Cf. A031398, A002313, A133204, A130226 (values of x).
See also A322781, A323271, A323272.

Programs

A323271 Numbers of the form p*q*r where p, q, r are distinct primes congruent to 1 mod 4 such that Legendre(p/q) = Legendre(p/r) = Legendre(q/r) = -1.

Original entry on oeis.org

2405, 3145, 4745, 6205, 6305, 8245, 8905, 9605, 12545, 12805, 14705, 16405, 16745, 17945, 18241, 19045, 19345, 19805, 20213, 20605, 20905, 22945, 23545, 25805, 26605, 26945, 28645, 29705, 30073, 33745, 35705, 35989, 36205, 36305, 37505, 38369, 38545
Offset: 1

Views

Author

N. J. A. Sloane, Jan 11 2019

Keywords

Comments

If k is a term, the Pell equation x^2 - k*y^2 = -1 has a solution [Dirichlet, Newman (1977)]. This is only a sufficient condition, there are many other solutions, see A031396.

Crossrefs

Programs

  • Python
    from sympy.ntheory import legendre_symbol, factorint
    A323271_list, k = [], 1
    while len(A323271_list) < 10000:
        fk, fv = zip(*list(factorint(4*k+1).items()))
        if sum(fv) == len(fk) == 3 and fk[0] % 4 == fk[1] % 4 == fk[2] % 4 == 1 and legendre_symbol(fk[0],fk[1]) == legendre_symbol(fk[0],fk[2]) == legendre_symbol(fk[1],fk[2]) == -1:
                A323271_list.append(4*k+1)
        k += 1 # Chai Wah Wu, Jan 11 2019

A323272 Numbers of the form p_1*p_2*p_3*...*p_r where r is 2 or an odd number > 2, and the p_i are distinct primes congruent to 1 mod 4 such that Legendre(p_i/p_j) = -1 for all i != j.

Original entry on oeis.org

65, 85, 185, 265, 365, 481, 485, 493, 533, 565, 629, 685, 697, 785, 865, 949, 965, 985, 1037, 1073, 1157, 1165, 1189, 1241, 1261, 1285, 1385, 1417, 1465, 1565, 1585, 1649, 1685, 1765, 1769, 1781, 1853, 1865, 1921, 1937, 1985, 2117, 2165, 2173
Offset: 1

Views

Author

N. J. A. Sloane, Jan 11 2019

Keywords

Comments

If k is a term, the Pell equation x^2 - k*y^2 = -1 has a solution [Dirichlet, Newman (1977)]. This is only a sufficient condition, there are many other solutions, see A031396.

Crossrefs

Cf. A002144, A031396. Includes the union of A322781 and A323271.
Showing 1-3 of 3 results.