OFFSET
1,1
LINKS
G. C. Greubel, Table of n, a(n) for n = 1..10000
MATHEMATICA
a = {}; Do[If[(1 - (Exp[Pi Sqrt[x]] - Floor[Exp[Pi Sqrt[x]]]) > 0) && (1 - ( Exp[Pi Sqrt[x]] - Floor[Exp[Pi Sqrt[x]]])< 10^(-1)), AppendTo[a, x]], {x, 1, 1000}]; a
epQ[n_]:=Module[{c=Exp[Pi Sqrt[n]]}, Ceiling[c]-c<1/10]; Select[ Range[ 500], epQ] (* Harvey P. Dale, May 10 2015 *)
PROG
(PARI) default(realprecision, 500); c(n) = exp(Pi*sqrt(n));
for(n=1, 500, if( ceil(c(n)) - c(n) <1/10, print1(n", "))) \\ G. C. Greubel, May 31 2019
(Magma) SetDefaultRealField(RealField(500)); R:= RealField(); [n: n in [1..500] | Ceiling(Exp(Pi(R)*Sqrt(n))) - Exp(Pi(R)*Sqrt(n)) lt 1/10]; // G. C. Greubel, May 31 2019
CROSSREFS
KEYWORD
nonn
AUTHOR
Artur Jasinski, Jan 03 2007
STATUS
approved