OFFSET
0,2
COMMENTS
a(n) is the integer k that minimizes |k/n^2 - sqrt(3)|. - Clark Kimberling, Oct 11 2017
REFERENCES
S. Selby, editor, CRC Basic Mathematical Tables, CRC Press, 1970, pp. 10-11.
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 0..10000
Eric Weisstein's World of Mathematics, Tetrahedron
Eric Weisstein's World of Mathematics, Platonic Solid
FORMULA
a(n) = round(n^2 * sqrt(3)).
EXAMPLE
a(3)=16 because round(3^2*sqrt(3)) = round(9*1.73205...) = round(15.5884...) = 16.
MATHEMATICA
Round[Sqrt[3]#]&/@(Range[0, 50]^2) (* Harvey P. Dale, Sep 24 2012 *)
PROG
(PARI) for(n=0, 100, print1(round(n^2*sqrt(3)), ", "))
(Magma) [Round(n^2 * Sqrt(3)): n in [0..50]]; // Vincenzo Librandi, May 21 2011
(Python)
from math import isqrt
def A070169(n): return (m:=isqrt(k:=3*n**4))+(k-m*(m+1)>=1) # Chai Wah Wu, Jun 19 2024
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Rick L. Shepherd, Apr 24 2002
STATUS
approved