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.

A145781 Least m >= 0 which when added to primorial(n) yields a square.

Original entry on oeis.org

2, 3, 6, 15, 91, 246, 715, 3535, 21099, 95995, 175470, 4468006, 31516774, 192339970, 212951314, 5138843466, 76699112491, 103728576730, 3051100701874, 14417674958635, 245230361204214, 2296196521511806, 10940476546738414
Offset: 1

Views

Author

Keywords

Examples

			a(1)= 4 - 2 = 2, a(2)= 9 - 2*3 = 3, a(3)= 36 - 2*3*5 = 6, a(4)= 225 - 2*3*5*7 = 15, and a(5)= 2401 - 2*3*5*7*11 = 91.
		

Crossrefs

Programs

  • Mathematica
    (IntegerPart[Sqrt[#]]+1)^2-#&/@Rest[FoldList[Times,1,Prime[Range[30]]]]  (* Harvey P. Dale, Jan 14 2011 *)
  • PARI
    j=[];for (n=1,30,j=concat(j,(ceil(sqrt(prod(i=1,n,prime(i))))^2 -prod(i=1,n,prime(i)))));j

Formula

a(n) = A216144(n)^2 - A002110(n). - Jonathan Sondow, Sep 02 2012

Extensions

Definition shortened and clarified by Jonathan Sondow, Sep 02 2012