cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A289836 Numbers k such that floor(e*k + Pi) is a square.

Original entry on oeis.org

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

Views

Author

Joseph Wheat, Jul 13 2017

Keywords

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