OFFSET
1,2
COMMENTS
Schoenberg proved that a regular n-simplex can be inscribed in Z^n in the following cases and no others: (1) n is even and n+1 is a square; (2) n == 3 (mod 4); (3) n == 1 (mod 4) and n+1 is the sum of two squares.
LINKS
Hiroshi Maehara and Horst Martini, Elementary geometry on the integer lattice, Aequationes mathematicae, 92 (2018), 763-800. See Sec. 3.2.
I. J. Schoenberg, Regular Simplices and Quadratic Forms, J. London Math. Soc. 12 (1937) 48-55.
EXAMPLE
There is no equilateral triangle in the plane whose vertices have integer coordinates, so 2 is not on the list. But there is a regular tetrahedron in space whose vertices have integer coordinates, namely (0,0,0), (0,1,1), (1,0,1), (1,1,0), hence 3 is on the list.
MAPLE
select(n->(is(n, even) and issqr(n+1)) or (n mod 4 = 3) or ((n mod 4 = 1) and (numtheory[sum2sqr](n+1)<>[])), [ $1..200]);
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
David Radcliffe, Aug 01 2004
STATUS
approved