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.

A244780 Positive numbers primitively represented by the binary quadratic form (1, 1, 3).

Original entry on oeis.org

1, 3, 5, 9, 11, 15, 23, 25, 27, 31, 33, 37, 45, 47, 53, 55, 59, 67, 69, 71, 75, 81, 89, 93, 97, 99, 103, 111, 113, 115, 125, 135, 137, 141, 155, 157, 159, 163, 165, 177, 179, 181, 185, 191, 199, 201, 207, 213, 223, 225, 229, 235, 243, 251, 253, 257, 265, 267
Offset: 1

Views

Author

Peter Luschny, Jul 06 2014

Keywords

Comments

Discriminant = -11.

Crossrefs

Programs

  • Maple
    # Function PriRepBQF in A244779.
    A244780_list := n -> PriRepBQF(1, 1, 3, n); A244780_list(267);
  • Mathematica
    Reap[For[n = 1, n < 1000, n++, r = Reduce[x^2 + x y + 3 y^2 == n, {x, y}, Integers]; If[r =!= False, If[AnyTrue[{x, y} /. {ToRules[r /. C[1] -> 0]}, CoprimeQ @@ # &], Sow[n]]]]][[2, 1]] (* Jean-François Alcover, Oct 31 2016 *)