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.

A102698 Number of equilateral triangles with coordinates (x,y,z) in the set {0, 1,...,n}.

Original entry on oeis.org

8, 80, 368, 1264, 3448, 7792, 16176, 30696, 54216, 90104, 143576, 220328, 326680, 471232, 664648, 916344, 1241856, 1655208, 2172584, 2812664, 3598664, 4553800, 5702776, 7075264, 8705088, 10628928, 12880056, 15496616, 18523472, 22003808
Offset: 1

Views

Author

Joshua Zucker, Feb 04 2005

Keywords

Comments

Inspired by Problem 25 on the 2005 AMC-12A Mathematics Competition, which asked for a(2).

Examples

			a(1) = 8 because in the unit cube, equilateral triangles are formed by cutting off any one of the 8 corners.
a(2) = 80 because there are 8 unit cubes with 8 each, 8 larger triangles (analogous to the 8 in the unit cube, but twice as big) and also 8 triangles of side length sqrt(6).
		

Crossrefs

Cf. a(n)=8*A103501, A103158 tetrahedra in lattice cube.

Programs

  • Maple
    # See Ionascu link for Maple program.
  • Mathematica
    (* See Obando link for Mathematica program. *)

Formula

a(n) approximately equals n^4.989; also lim log(a(n))/log(n) exists. - Eugen J. Ionascu, Dec 09 2006

Extensions

More terms from Hugo Pfoertner, Feb 10 2005
Edited by Ray Chandler, Sep 15 2007, Jul 27 2010