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.

A305704 Numbers that are the semiperimeter of some triangle with integer sides and area.

Original entry on oeis.org

6, 8, 9, 12, 15, 16, 18, 20, 21, 22, 24, 25, 27, 28, 30, 32, 33, 34, 35, 36, 38, 39, 40, 42, 44, 45, 48, 49, 50, 52, 54, 55, 56, 57, 60, 63, 64, 65, 66, 68, 70, 72, 75, 76, 77, 78, 80, 81, 82, 84, 85, 86, 87, 88, 90, 91, 93, 95, 96, 98, 99, 100, 102, 104, 105
Offset: 1

Views

Author

Peter Kagey, Jun 08 2018

Keywords

Crossrefs

Cf. A051518.

Programs

  • Mathematica
    hp[p_] := Catch@ Block[{c, q=p/2}, Do[c = p-a-b; If[IntegerQ@ Sqrt[q (q-a) (q-b) (q-c)], Throw@ True], {a, p/2-1}, {b, p/2-a+1, p/2-1}]; False]; Select[Range@ 105, hp[2 #] &] (* Giovanni Resta, Jun 14 2018 *)

Formula

a(n) = A051518(n)/2.