OFFSET
1,2
LINKS
Harvey P. Dale, Table of n, a(n) for n = 1..1000
FORMULA
a(n) = round( (Pi/4) * n^2 ).
EXAMPLE
a(3)=7, since 3^2*Pi/4 = 7.06858347.
MAPLE
seq(round((1/4)*Pi*n^2), n = 1..50); # G. C. Greubel, Oct 12 2019
MATHEMATICA
Round[Pi/4 Range[50]^2] (* Harvey P. Dale, May 11 2016 *)
PROG
(PARI) a(n) = round((Pi/4) * n^2); \\ Michel Marcus, Sep 02 2013
(Magma) R:= RealField(20); [Round(Pi(R)*n^2/4): n in [1..50]]; // G. C. Greubel, Oct 12 2019
(Sage) [round(pi*n^2/4) for n in (1..50)] # G. C. Greubel, Oct 12 2019
(GAP) List([1..50], n-> Int(Round(Atan(1.0)*n^2)) ); # G. C. Greubel, Oct 12 2019
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Joe K. Crump (joecr(AT)carolina.rr.com)
STATUS
approved