login
A289836
Numbers k such that floor(e*k + Pi) is a square.
1
5, 17, 29, 36, 52, 71, 132, 146, 177, 211, 229, 330, 648, 744, 956, 1112, 1368, 1413, 1459, 1506, 1700, 1906, 2124, 2295, 2657, 2720, 2848, 2913, 2979, 3181, 3319, 3532, 3678, 3902, 3978, 4055, 4211, 4290, 4780, 5035
OFFSET
1,1
LINKS
Charles R Greathouse IV, Table of n, a(n) for n = 1..10000
MATHEMATICA
Select[Range@ 5040, IntegerQ@ Sqrt@ Floor[# E + Pi] &] (* Michael De Vlieger, Jul 14 2017 *)
PROG
(PARI) is(n)=issquare(floor(exp(1)*n+Pi)) \\ Charles R Greathouse IV, Jul 14 2017
(Python)
from gmpy2 import is_square
from mpmath import *
mp.dps=100
def ok(n): return is_square(int(nint(floor(exp(1)*n + pi))))
print([n for n in range(1, 6001) if ok(n)]) # Indranil Ghosh, Jul 15 2017
CROSSREFS
Sequence in context: A264618 A271471 A217512 * A068829 A090403 A096705
KEYWORD
nonn
AUTHOR
Joseph Wheat, Jul 13 2017
EXTENSIONS
More terms from Charles R Greathouse IV, Jul 14 2017
STATUS
approved