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.

A146968 Brocard's problem: positive integers n such that n!+1 = m^2.

Original entry on oeis.org

4, 5, 7
Offset: 1

Views

Author

Marco Bellaccini (marcomurk(AT)tele2.it), Nov 03 2008

Keywords

Comments

No other terms below 10^9.
See A085692 for more comments and references. - M. F. Hasler, Nov 20 2018

Examples

			7! + 1 = 5041 = 71^2, hence 7 is in the sequence. - _Klaus Brockhaus_, Nov 05 2008
		

Crossrefs

A085692, A146968, A216071 are all essentially the same sequence. - N. J. A. Sloane, Sep 01 2012

Programs

  • Magma
    [ : n in [1..8047] | t where t,p:=IsSquare(Factorial(n)+1) ]; // Klaus Brockhaus, Nov 05 2008
    
  • Mathematica
    Select[Range[10],IntegerQ[Sqrt[#!+1]]&] (* Harvey P. Dale, Jan 31 2015 *)
  • PARI
    { for (n=1, 60100, if(issquare(n!+1) == 1, print(n) ) ) } \\ Marco Bellaccini (marcomurk(AT)tele2.it), Nov 08 2008
  • Shell
    #!/bin/sh n=0 while(true) do n=`echo $n + 1 | bc` calc "($n! + 1)" ^ "(1 / 2)" | grep -v \. done
    

Extensions

Edited by Max Alekseyev, Feb 06 2010