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-3 of 3 results.

A110997 Powers equal to (sum of first k primes) minus 1.

Original entry on oeis.org

1, 4, 9, 16, 27, 128, 196, 839056, 7796654478001
Offset: 1

Views

Author

Walter Kehowski, Sep 30 2005

Keywords

Comments

I have checked out to the first 250000 primes but the last entry is at the 504th prime, 3607.

Examples

			128 is a term because 128 = -1 + Sum_{i=1..10} prime(i) = 2^7.
		

Crossrefs

Intersection of A001597 and A237589.

Programs

  • Maple
    with(numtheory); egcd := proc(n) local L; L:=map(proc(z) z[2] end, ifactors(n)[2]); igcd(op(L)) end: s := proc(n) option remember; local p; if n=1 then [1,2] else p:=ithprime(n); [n,s(n-1)[2]+p] fi end; t := proc(n) option remember; [n,s(n)[2]-1] end; PW:=[]; for z to 1 do for j from 1 to 250000 do if egcd(t(j)[2])>1 or t(j)[2]=1 then PW:=[op(PW),t(j)] fi od od; PW;
  • Mathematica
    s = 0; Do[s = s + Prime[n]; If[s == 2 || GCD @@ Transpose[ FactorInteger[s - 1]][[2]] > 1, Print[s - 1]], {n, 10^6}] (* Robert G. Wilson v, Oct 02 2005 *)

Extensions

Initial 1 and a(9) added by Jinyuan Wang, Aug 10 2023

A264858 Integers k such that A007504(k) + 1 is a square.

Original entry on oeis.org

0, 17, 539, 652, 6420, 350857847
Offset: 1

Views

Author

Altug Alkan, Nov 26 2015

Keywords

Comments

Integers k such that the sum of the first k primes + 1 is a square.
Integers k such that A014284(k+1) is a square.
In A110996, it is commented that a(6) > 250000, if it exists.
a(6) > 50000000, if it exists. - Jon E. Schoenfield, Nov 29 2015

Examples

			a(2) = 17 because A007504(17) + 1 = 440 + 1 = 441 is a square.
		

Crossrefs

Programs

Extensions

a(6) from Jinyuan Wang, Aug 09 2023

A364798 Triangular numbers that for some k >= 1 are also the sum of the first k noncomposite numbers (1 together with the primes).

Original entry on oeis.org

1, 3, 6, 78, 448516225, 448254714630193471
Offset: 1

Views

Author

Ilya Gutkovskiy, Aug 08 2023

Keywords

Comments

a(n) = A000217(i) = A014284(j) for appropriate i, j.

Examples

			78 is a term because 78 = 1 + 2 + 3 + 4 + 5 + 6 + 7 + 8 + 9 + 10 + 11 + 12 = 1 + 2 + 3 + 5 + 7 + 11 + 13 + 17 + 19.
		

Crossrefs

Intersection of A000217 and A014284.

Programs

  • Mathematica
    Select[Accumulate[Join[{1}, Prime[Range[10000]]]], IntegerQ[Sqrt[8 # + 1]] &]

Extensions

a(6) from Jinyuan Wang, Aug 09 2023
Showing 1-3 of 3 results.