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.

A343809 Divide the positive integers into subsets of lengths given by successive primes, then reverse the order of terms in each subset.

Original entry on oeis.org

2, 1, 5, 4, 3, 10, 9, 8, 7, 6, 17, 16, 15, 14, 13, 12, 11, 28, 27, 26, 25, 24, 23, 22, 21, 20, 19, 18, 41, 40, 39, 38, 37, 36, 35, 34, 33, 32, 31, 30, 29, 58, 57, 56, 55, 54, 53, 52, 51, 50, 49, 48, 47, 46, 45, 44, 43, 42, 77, 76, 75, 74, 73, 72, 71, 70, 69, 68, 67, 66, 65, 64, 63, 62, 61, 60, 59
Offset: 1

Views

Author

Paolo Xausa, Apr 30 2021

Keywords

Comments

From Omar E. Pol, Apr 30 2021: (Start)
Irregular triangle read by rows T(n,k) in which row n lists the next p positive integers in decreasing order, where p is the n-th prime, with n >= 1.
The triangle has the following properties:
Column 1 gives the nonzero terms of A007504.
Column 2 gives A237589.
Column 3 gives A071148.
Column 4 gives the terms > 2 of A343859.
Column 5 gives the absolute values of the terms < -1 of A282329.
Column 6 gives the terms > 7 of A082548.
Column 7 gives the terms > 6 of A115030.
Records are in the column 1.
Indices of records are in the right border.
Right border gives A014284.
Row lengths give A000040.
Row products give A078423.
Row sums give A034956. (End)

Examples

			From _Omar E. Pol_, Apr 30 2021: (Start)
Written as an irregular triangle in which row lengths give A000040 the sequence begins:
   2,  1;
   5,  4,  3;
  10,  9,  8,  7,  6;
  17, 16, 15, 14, 13, 12, 11;
  28, 27, 26, 25, 24, 23, 22, 21, 20, 19, 18;
  41, 40, 39, 38, 37, 36, 35, 34, 33, 32, 31, 30, 29;
  58, 57, 56, 55, 54, 53, 52, 51, 50, 49, 48, 47, 46, 45, 44, 43, 42;
  77, 76, 75, 74, 73, 72, 71, 70, 69, 68, 67, 66, 65, 64, 63, 62, 61, 60, 59;
  ...
(End)
		

Crossrefs

Programs

  • Maple
    R:= NULL: t:= 1:
    for i from 1 to 20 do
      p:= ithprime(i);
      R:= R, seq(i,i=t+p-1..t,-1);
      t:= t+p;
    od:
    R; # Robert Israel, Apr 30 2021
  • Mathematica
    With[{nn=10},Reverse/@TakeList[Range[Total[Prime[Range[nn]]]],Prime[Range[nn]]]]//Flatten (* Harvey P. Dale, Apr 27 2022 *)

Formula

T(n,k) = A007504(n) - k + 1, with n >= 1 and 1 <= k <= A000040(n). - Omar E. Pol, May 01 2021

A110979 Squares equal to the sum of the first k primes minus 1.

Original entry on oeis.org

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

Views

Author

Giovanni Teofilatto, Sep 30 2005

Keywords

Comments

No more terms < 7472966967498, sum of first 10^6 primes minus 1. - Ray Chandler, Oct 07 2005

Crossrefs

Intersection of A000290 and A237589.

Programs

  • Mathematica
    Select[Accumulate[Prime[Range[1000]]]-1,IntegerQ[Sqrt[#]]&] (* Harvey P. Dale, Jun 09 2022 *)
  • PARI
    lista(nn) = my(s=-1); forprime(p=2, nn, s+=p; if(issquare(s), print1(s, ", "))) \\ Jinyuan Wang, Aug 10 2023

Extensions

a(6) corrected by Ray Chandler, Oct 07 2005
a(7) from Jinyuan Wang, Aug 10 2023

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