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.

A243655 Positive numbers that are primitively represented by the indefinite quadratic form x^2 - 3y^2 of discriminant 12.

Original entry on oeis.org

1, 6, 13, 22, 33, 37, 46, 61, 69, 73, 78, 94, 97, 109, 118, 121, 141, 142, 157, 166, 169, 177, 181, 193, 213, 214, 222, 229, 241, 249, 253, 262, 277, 286, 313, 321, 334, 337, 349, 358, 366, 373, 382, 393, 397, 409, 421, 429, 433, 438, 454, 457, 478, 481
Offset: 1

Views

Author

N. J. A. Sloane, Jun 11 2014

Keywords

Comments

x^2+2xy-2y^2 is an equivalent form.

Crossrefs

Cf. A084916 (all numbers represented), A068228.

Programs

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