login
This site is supported by donations to The OEIS Foundation.

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
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 (list; graph; refs; listen; history; text; internal format)
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 xrange(1, 6001) if ok(n)] # Indranil Ghosh, Jul 15 2017

CROSSREFS

Sequence in context: A264618 A271471 A217512 * A068829 A090403 A096705

Adjacent sequences:  A289833 A289834 A289835 * A289837 A289838 A289839

KEYWORD

nonn

AUTHOR

Joseph Wheat, Jul 13 2017

EXTENSIONS

More terms from Charles R Greathouse IV, Jul 14 2017

STATUS

approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recent
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 18 08:37 EDT 2019. Contains 322209 sequences. (Running on oeis4.)