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.

Showing 1-1 of 1 results.

A092983 Least squarefree number > n!.

Original entry on oeis.org

2, 3, 7, 26, 122, 721, 5042, 40321, 362881, 3628801, 39916801, 479001602, 6227020801, 87178291201, 1307674368001, 20922789888001, 355687428096001, 6402373705728001, 121645100408832001, 2432902008176640001
Offset: 1

Views

Author

Amarnath Murthy, Mar 28 2004

Keywords

Examples

			a(5) = 122 as 121 is not squarefree.
		

Crossrefs

Cf. A092984.

Programs

  • Mathematica
    lsf[n_]:=Module[{i=1},While[!SquareFreeQ[n+i],i++];n+i]; lsf/@(Range[20]!)  (* Harvey P. Dale, Apr 06 2011 *)
  • PARI
    a(n)=for(i=n!+1,n!+n,if(issquarefree(i),return(i)))

Extensions

Corrected and extended by Mohammed Bouayoun (bouyao(AT)wanadoo.fr), Mar 29 2004
Showing 1-1 of 1 results.