A289836 Numbers k such that floor(e*k + Pi) is a square.
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
Keywords
Links
- Charles R Greathouse IV, Table of n, a(n) for n = 1..10000
Programs
-
Mathematica
Select[Range@ 5040, IntegerQ@ Sqrt@ Floor[# E + Pi] &] (* Michael De Vlieger, Jul 14 2017 *)
-
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
Extensions
More terms from Charles R Greathouse IV, Jul 14 2017