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-10 of 21 results. Next

A155575 Intersection of A000404 and A154778: N = a^2 + b^2 = c^2 + 5d^2 for some positive integers a,b,c,d.

Original entry on oeis.org

29, 41, 45, 61, 89, 101, 109, 116, 145, 149, 164, 180, 181, 205, 225, 229, 241, 244, 245, 261, 269, 281, 305, 349, 356, 369, 389, 401, 404, 405, 409, 421, 436, 445, 449, 461, 464, 505, 509, 521, 541, 545, 549, 569, 580, 596, 601, 641, 656, 661, 701, 709, 720
Offset: 1

Views

Author

M. F. Hasler, Jan 25 2009

Keywords

Comments

Subsequence of A155565 (where a,b,c,d may be zero).

Crossrefs

Programs

  • PARI
    isA155575(n,/* optional 2nd arg allows us to get other sequences */c=[5,1]) = { for(i=1,#c, for(b=1,sqrtint((n-1)\c[i]), issquare(n-c[i]*b^2) & next(2)); return);1}
    for( n=1,999, isA155575(n) & print1(n","))

A155577 Intersection of A154777 and A154778: N = a^2 + 2b^2 = c^2 + 5d^2 for some positive integers a,b,c,d.

Original entry on oeis.org

6, 9, 24, 36, 41, 54, 81, 86, 89, 96, 129, 134, 144, 150, 164, 166, 201, 214, 216, 225, 241, 246, 249, 281, 294, 321, 324, 326, 344, 356, 369, 384, 401, 409, 441, 449, 454, 486, 489, 516, 521, 534, 536, 566, 569, 576, 600, 601, 614, 641, 656, 664, 681, 694
Offset: 1

Views

Author

M. F. Hasler, Jan 25 2009

Keywords

Comments

Subsequence of A155567 (where a,b,c,d may be zero).

Crossrefs

Programs

  • PARI
    isA155577(n,/* optional 2nd arg allows us to get other sequences */c=[5,2]) = { for(i=1,#c, for(b=1,sqrtint((n-1)\c[i]), issquare(n-c[i]*b^2) & next(2)); return);1}
    for( n=1,999, isA155577(n) & print1(n","))

A155710 Intersection of A092572 and A154778: N = a^2 + 3b^2 = c^2 + 5d^2 for some positive integers a,b,c,d.

Original entry on oeis.org

21, 36, 49, 61, 84, 109, 129, 144, 181, 189, 196, 201, 229, 241, 244, 301, 309, 324, 336, 349, 381, 409, 421, 436, 441, 469, 489, 516, 525, 541, 549, 576, 601, 661, 669, 709, 721, 724, 756, 769, 784, 804, 829, 849, 889, 900, 916, 921, 964, 976, 981, 1009, 1021
Offset: 1

Views

Author

M. F. Hasler, Jan 25 2009

Keywords

Comments

Subsequence of A155570 (where a,b,c,d may be zero).

Crossrefs

Programs

  • PARI
    isA155710(n,/* use optional 2nd arg to get other analogous sequences */c=[5,3]) = { for(i=1,#c, for(b=1,sqrtint((n-1)\c[i]), issquare(n-c[i]*b^2) & next(2)); return);1}
    for( n=1,1111, isA155710(n) & print1(n","))

A155571 Intersection of A000404, A092572 and A154778: N = a^2 + b^2 = c^2 + 3d^2 = e^2 + 5f^2 for some positive integers a,b,c,d,e,f.

Original entry on oeis.org

61, 109, 181, 229, 241, 244, 349, 409, 421, 436, 541, 549, 601, 661, 709, 724, 769, 829, 900, 916, 964, 976, 981, 1009, 1021, 1069, 1129, 1201, 1225, 1249, 1321, 1381, 1396, 1429, 1489, 1521, 1525, 1549, 1609, 1621, 1629, 1636, 1669, 1684, 1741, 1744, 1789
Offset: 1

Views

Author

M. F. Hasler, Jan 25 2009

Keywords

Crossrefs

Programs

  • PARI
    isA155571(n,/* optional 2nd arg allows us to get other sequences */c=[5,3,1]) = { for(i=1,#c, for(b=1,sqrtint((n-1)\c[i]), issquare(n-c[i]*b^2) & next(2)); return);1}
    for( n=1,1999, isA155571(n) & print1(n","))

A155572 Intersection of A000404, A154777 and A154778: N = a^2 + b^2 = c^2 + 2d^2 = e^2 + 5f^2 for some positive integers a,b,c,d,e,f.

Original entry on oeis.org

41, 89, 164, 225, 241, 281, 356, 369, 401, 409, 449, 521, 569, 601, 641, 656, 761, 769, 801, 809, 881, 900, 929, 964, 1009, 1025, 1049, 1124, 1129, 1201, 1249, 1289, 1321, 1361, 1409, 1424, 1476, 1481, 1489, 1521, 1601, 1604, 1609, 1636, 1681, 1721, 1796
Offset: 1

Views

Author

M. F. Hasler, Jan 25 2009

Keywords

Crossrefs

Programs

  • PARI
    isA155572(n,/* optional 2nd arg allows us to get other sequences */c=[5,2,1]) = { for(i=1,#c, for(b=1,sqrtint((n-1)\c[i]), issquare(n-c[i]*b^2) & next(2)); return);1}
    for( n=1,1999, isA155572(n) & print1(n","))

A155713 Intersection of A154778 and A155716: N = a^2 + 5b^2 = c^2 + 6d^2 for some positive integers a,b,c,d.

Original entry on oeis.org

49, 70, 105, 145, 150, 166, 196, 214, 225, 241, 249, 280, 294, 321, 406, 409, 420, 441, 454, 505, 580, 600, 601, 609, 630, 664, 681, 694, 721, 726, 745, 769, 784, 841, 856, 870, 886, 889, 900, 934, 945, 964, 996, 1009, 1030, 1041, 1089, 1120, 1126, 1129
Offset: 1

Views

Author

M. F. Hasler, Jan 25 2009

Keywords

Crossrefs

Programs

  • PARI
    isA155713(n,/* optional 2nd arg allows us to get other sequences */c=[6,5]) = { for(i=1,#c, for(b=1,sqrtint((n-1)\c[i]), issquare(n-c[i]*b^2) & next(2)); return);1}
    for( n=1,999, isA155713(n) & print1(n","))

A097268 Numbers that are both the sum of two nonzero squares and the difference of two nonzero squares.

Original entry on oeis.org

5, 8, 13, 17, 20, 25, 29, 32, 37, 40, 41, 45, 52, 53, 61, 65, 68, 72, 73, 80, 85, 89, 97, 100, 101, 104, 109, 113, 116, 117, 125, 128, 136, 137, 145, 148, 149, 153, 157, 160, 164, 169, 173, 180, 181, 185, 193, 197, 200, 205, 208, 212, 221, 225, 229, 232, 233
Offset: 1

Views

Author

Ray Chandler, Aug 19 2004

Keywords

Comments

Intersection of A000404 (sum of squares) and A024352 (difference of squares).
Also: Numbers of the form x^2+4y^2, where x and y are positive integers. Cf. A154777, A092572, A154778 for analogous sequences. - M. F. Hasler, Jan 24 2009

Crossrefs

Programs

  • PARI
    isA097268(n) = forstep( b=2,sqrtint(n-1),2, issquare(n-b^2) && return(1)) \\ M. F. Hasler, Jan 24 2009

A155716 Numbers of the form N = a^2 + 6b^2 for some positive integers a,b.

Original entry on oeis.org

7, 10, 15, 22, 25, 28, 31, 33, 40, 42, 49, 55, 58, 60, 63, 70, 73, 79, 87, 88, 90, 97, 100, 103, 105, 106, 112, 118, 121, 124, 127, 132, 135, 145, 150, 151, 154, 159, 160, 166, 168, 175, 177, 186, 193, 196, 198, 199, 202, 214, 217, 220, 223, 225, 231, 232, 240
Offset: 1

Views

Author

M. F. Hasler, Jan 25 2009

Keywords

Comments

Subsequence of A002481 (which allows for a and b to be zero).
Primes are in A033199. - Bernard Schott, Sep 20 2019

Crossrefs

Programs

  • Mathematica
    With[{upto=240},Select[Union[#[[1]]^2+6#[[2]]^2&/@Tuples[ Range[Sqrt[ upto]], 2]],#<=upto&]] (* Harvey P. Dale, Aug 05 2016 *)
  • PARI
    isA155716(n,/* optional 2nd arg allows us to get other sequences */c=6) = { for(b=1,sqrtint((n-1)\c), issquare(n-c*b^2) & return(1))}
    for( n=1,999, isA155716(n) & print1(n","))
    
  • PARI
    upto(n) = my(res=List()); for(i=1,sqrtint(n),for(j=1, sqrtint((n - i^2) \ 6), listput(res, i^2 + 6*j^2))); listsort(res,1); res \\ David A. Corneth, Sep 18 2019

A020669 Numbers of form x^2 + 5 y^2.

Original entry on oeis.org

0, 1, 4, 5, 6, 9, 14, 16, 20, 21, 24, 25, 29, 30, 36, 41, 45, 46, 49, 54, 56, 61, 64, 69, 70, 80, 81, 84, 86, 89, 94, 96, 100, 101, 105, 109, 116, 120, 121, 125, 126, 129, 134, 141, 144, 145, 149, 150, 161, 164, 166, 169, 174, 180, 181, 184, 189, 196, 201, 205, 206, 214, 216
Offset: 1

Views

Author

Keywords

Comments

In other words, numbers represented by quadratic form with Gram matrix [1,0; 0,5].
x^2 + 5 y^2 has discriminant -20.
A positive integer n is in this sequence if and only if the p-adic order ord_p(n) of n is even for any prime p with floor(p/10) odd, and the number of prime divisors p == 3 or 7 (mod 20) of n with ord_p(n) odd has the same parity with ord_2(n). - Zhi-Wei Sun, Mar 24 2018

References

  • H. Cohn, A second course in number theory, John Wiley & Sons, Inc., New York-London, 1962. See pp. 3, 4 and later chapters.
  • David A. Cox, Primes of the Form x^2 + n y^2, Wiley, 1989. See Eq. (2.22), p. 33.

Crossrefs

For primes see A033205.
For the properly represented numbers see A344231.

Programs

  • Magma
    [n: n in [0..216] | NormEquation(5, n) eq true]; // Arkadiusz Wesolowski, May 11 2016
  • Maple
    select(t -> [isolve(x^2+5*y^2=t)]<>[], [$0..1000]); # Robert Israel, May 11 2016
  • Mathematica
    formQ[n_] := Reduce[x >= 0 && y >= 0 && n == x^2 + 5 y^2, {x, y}, Integers] =!= False; Select[ Range[0, 300], formQ] (* Jean-François Alcover, Sep 20 2011 *)
    mx = 300;
    limx = Sqrt[mx]; limy = Sqrt[mx/5];
    Select[
    Union[
    Flatten[
    Table[x^2 + 5*y^2, {x, 0, limx}, {y, 0, limy}]
           ]
         ], # <= mx &
    ] (* T. D. Noe, Sep 20 2011 *)

Formula

List contains 0 and all positive n such that 2*A035170(n) = A028586(2n) is nonzero. - Michael Somos, Oct 21 2006

Extensions

Entry revised by N. J. A. Sloane, Sep 20 2012

A155578 Intersection of A000404 and A155717: N = a^2 + b^2 = c^2 + 7*d^2 for some positive integers a,b,c,d.

Original entry on oeis.org

8, 29, 32, 37, 53, 72, 109, 113, 116, 128, 137, 148, 149, 193, 197, 200, 212, 232, 233, 261, 277, 281, 288, 296, 317, 333, 337, 373, 389, 392, 400, 401, 421, 424, 436, 449, 452, 457, 464, 477, 512, 541, 548, 557, 569, 592, 596, 613, 617, 641, 648, 653, 673
Offset: 1

Views

Author

M. F. Hasler, Jan 25 2009

Keywords

Comments

Subsequence of A155568 (where a,b,c,d may be zero).

Crossrefs

Programs

  • PARI
    isA155578(n,/* optional 2nd arg allows us to get other sequences */c=[7,1]) = { for(i=1,#c, for(b=1,sqrtint((n-1)\c[i]), issquare(n-c[i]*b^2) & next(2)); return);1}
    for( n=1,999, isA155578(n) & print1(n","))
    
  • Python
    from math import isqrt
    def aupto(limit):
        cands = range(1, isqrt(limit)+1)
        left =  set(a**2 +   b**2 for a in cands for b in cands)
        right = set(c**2 + 7*d**2 for c in cands for d in cands)
        return sorted(k for k in left & right if k <= limit)
    print(aupto(673)) # Michael S. Branicky, Aug 29 2021
Showing 1-10 of 21 results. Next