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.

A089020 First value y satisfying x^2 - 3*y^2 = d^2, where d=A072330(n).

Original entry on oeis.org

1, 4, 3, 7, 5, 8, 11, 16, 20, 7, 13, 20, 12, 44, 9, 51, 17, 52, 57, 55, 19, 11, 16, 28, 72, 91, 36, 65, 69, 13, 23, 68, 20, 25, 105, 15, 88, 76, 44, 120, 145, 40, 87, 119, 29, 85, 24, 17, 155, 132, 93, 31, 44, 104, 52, 92, 95, 19, 140, 200, 28, 105, 231, 35, 100, 185, 105, 120
Offset: 1

Views

Author

Lekraj Beedassy, Nov 04 2003

Keywords

Crossrefs

For corresponding x see A089019.

Programs

  • Mathematica
    terms = 1000;
    nmax = 12 terms;
    okQ[n_] := AllTrue[FactorInteger[n][[All, 1]], MatchQ[Mod[#, 12], 1|11]&];
    A072330 = Select[Range[nmax], okQ];
    a[n_] := Module[{a, b, c, d, p}, d = If[n <= Length[A072330], A072330[[n]], Print["nmax = ", nmax, " insufficient"]; Exit[]]; If[n == 1, 1, For[b = 2 d, True, b++, a = b - d; c = b + d; p = (a + b + c)/2; If[IntegerQ[p] && IntegerQ[Sqrt[p (p - a) (p - b) (p - c)]] && GCD[a, b, c] == 1, Return[ Sqrt[b^2 - 4 d^2]/(2 Sqrt[3])]]]]];
    a /@ Range[terms] (* Jean-François Alcover, Mar 07 2020 *)

Extensions

Extended by Ray Chandler, Jul 03 2004