OFFSET
0,3
REFERENCES
S. Selby, editor, CRC Basic Mathematical Tables, CRC Press, 1970, pp. 10-11.
LINKS
Eric Weisstein's World of Mathematics, Octahedron
FORMULA
a(n) = round(n^3 * sqrt(2)/3)
EXAMPLE
a(4)=30 because round(4^3*sqrt(2)/3)=round(64*.47140...)=round(30.169...)=30.
MATHEMATICA
With[{c=Sqrt[2]/3}, Table[Round[n^3*c], {n, 0, 50}]] (* Harvey P. Dale, May 20 2014 *)
PROG
(PARI) for(n=0, 100, print1(round(n^3*sqrt(2)/3), ", "))
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Rick L. Shepherd, May 29 2002
STATUS
approved