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

A205547 The number j such that 3 divides prime(k)-prime(j), where k(n)=A205560(n).

Original entry on oeis.org

1, 1, 3, 4, 1, 3, 5, 4, 6, 1, 3, 5, 7, 1, 3, 5, 7, 9, 4, 6, 8, 4, 6, 8, 11, 1, 3, 5, 7, 9, 10, 4, 6, 8, 11, 12, 1, 3, 5, 7, 9, 10, 13, 1, 3, 5, 7, 9, 10, 13, 15, 1, 3, 5, 7, 9, 10, 13, 15, 16, 4, 6, 8, 11, 12, 14, 4, 6, 8, 11, 12, 14, 18, 1, 3, 5, 7, 9, 10, 13
Offset: 1

Views

Author

Clark Kimberling, Jan 30 2012

Keywords

Comments

For a guide to related sequences, see A205558.

Examples

			(See the example at A205560.)
		

Crossrefs

Programs

  • Mathematica
    (See the program at A205560.)

A205557 prime(k)-prime(j), where the pairs (k,j) are given by A205560 and A205547.

Original entry on oeis.org

3, 9, 6, 6, 15, 12, 6, 12, 6, 21, 18, 12, 6, 27, 24, 18, 12, 6, 24, 18, 12, 30, 24, 18, 6, 39, 36, 30, 24, 18, 12, 36, 30, 24, 12, 6, 45, 42, 36, 30, 24, 18, 6, 51, 48, 42, 36, 30, 24, 12, 6, 57, 54, 48, 42, 36, 30, 18, 12, 6, 54, 48, 42, 30, 24, 18, 60, 54, 48, 36
Offset: 1

Views

Author

Clark Kimberling, Jan 30 2012

Keywords

Comments

For a guide to related sequences, see A205558.

Examples

			(See the example at A205560.)
		

Crossrefs

Programs

  • Mathematica
    (See the program at A205560.)

A205558 (A204898)/2 = (prime(k)-prime(j))/2; A086802 without its zeros.

Original entry on oeis.org

1, 2, 1, 4, 3, 2, 5, 4, 3, 1, 7, 6, 5, 3, 2, 8, 7, 6, 4, 3, 1, 10, 9, 8, 6, 5, 3, 2, 13, 12, 11, 9, 8, 6, 5, 3, 14, 13, 12, 10, 9, 7, 6, 4, 1, 17, 16, 15, 13, 12, 10, 9, 7, 4, 3, 19, 18, 17, 15, 14, 12, 11, 9, 6, 5, 2, 20, 19, 18, 16, 15, 13, 12, 10, 7, 6, 3, 1, 22, 21
Offset: 1

Views

Author

Clark Kimberling, Jan 30 2012

Keywords

Comments

Let p(n) denote the n-th prime. If c is a positive integer, there are infinitely many pairs (k,j) such that c divides p(k)-p(j). The set of differences p(k)-p(j) is ordered as a sequence at A204890. Guide to related sequences:
c....k..........j..........p(k)-p(j).[p(k)-p(j)]/c
It appears that, as rectangular array, this sequence can be described by A(n,k) is the least m such that there are k primes in the set prime(n) + 2*i for {i=1..n}. - Michel Marcus, Mar 29 2023

Examples

			Writing prime(k) as p(k),
p(3)-p(2)=5-3=2
p(4)-p(2)=7-3=4
p(4)-p(3)=7-5=2
p(5)-p(2)=11-3=8
p(5)-p(3)=11-5=6
p(5)-p(4)=11-7=4,
so that the first 6 terms of A205558 are 1,2,1,4,3,2.
The sequence can be regarded as a rectangular array in which row n is given by [prime(n+2+k)-prime(n+1)]/2; a northwest corner follows:
1...2...4...5...7...8....10...13...14...17...19...20
1...3...4...6...7...9....12...13...16...18...19...21
2...3...5...6...8...11...12...15...17...18...20...23
1...3...4...6...9...10...13...15...16...18...21...24
2...3...5...8...9...12...14...15...17...20...23...24
1...3...6...7...10..12...13...15...18...21...22...25
2...5...6...9...11..12...14...17...20...21...24...26
- _Clark Kimberling_, Sep 29 2013
		

Crossrefs

Programs

  • Mathematica
    s[n_] := s[n] = Prime[n]; z1 = 200; z2 = 80;
    f[n_] := f[n] = Floor[(-1 + Sqrt[8 n - 7])/2];
    Table[s[n], {n, 1, 30}]              (* A000040 *)
    u[m_] := u[m] = Flatten[Table[s[k] - s[j], {k, 2, z1}, {j, 1, k - 1}]][[m]]
    Table[u[m], {m, 1, z1}]              (* A204890 *)
    v[n_, h_] := v[n, h] = If[IntegerQ[u[h]/n], h, 0]
    w[n_] := w[n] = Table[v[n, h], {h, 1, z1}]
    d[n_] := d[n] = Delete[w[n], Position[w[n], 0]]
    c = 2; t = d[c]                      (* A080036 *)
    k[n_] := k[n] = Floor[(3 + Sqrt[8 t[[n]] - 1])/2]
    j[n_] := j[n] = t[[n]] - f[t][[n]] (f[t[[n]]] + 1)/2
    Table[k[n], {n, 1, z2}]                  (* A133196 *)
    Table[j[n], {n, 1, z2}]                  (* A131818 *)
    Table[s[k[n]] - s[j[n]], {n, 1, z2}]     (* A204898 *)
    Table[(s[k[n]] - s[j[n]])/c, {n, 1, z2}] (* A205558 *)

A205675 (prime(k)-prime(j))/3: (A205557)/3.

Original entry on oeis.org

1, 3, 2, 2, 5, 4, 2, 4, 2, 7, 6, 4, 2, 9, 8, 6, 4, 2, 8, 6, 4, 10, 8, 6, 2, 13, 12, 10, 8, 6, 4, 12, 10, 8, 4, 2, 15, 14, 12, 10, 8, 6, 2, 17, 16, 14, 12, 10, 8, 4, 2, 19, 18, 16, 14, 12, 10, 6, 4, 2, 18, 16, 14, 10, 8, 6, 20, 18, 16, 12, 10, 8, 2, 23, 22, 20, 18, 16, 14, 10
Offset: 1

Views

Author

Clark Kimberling, Jan 30 2012

Keywords

Comments

For a guide to related sequences, see A205558.

Examples

			(See the example at A205560.)
		

Crossrefs

Programs

  • Mathematica
    (See the program at A205560.)

A205559 Positions of multiples of 3 in A204890 (differences of primes).

Original entry on oeis.org

2, 7, 9, 14, 16, 18, 20, 25, 27, 29, 31, 33, 35, 37, 39, 41, 43, 45, 49, 51, 53, 59, 61, 63, 66, 67, 69, 71, 73, 75, 76, 82, 84, 86, 89, 90, 92, 94, 96, 98, 100, 101, 104, 106, 108, 110, 112, 114, 115, 118, 120, 121, 123, 125, 127, 129, 130, 133, 135, 136
Offset: 1

Views

Author

Clark Kimberling, Jan 30 2012

Keywords

Comments

For a guide to related sequences, see A205558.

Examples

			In A204890=(1,3,2,5,4,2,9,8,6,...), multiples of 3 are in positions 2,7,9,... ; see the example at A205560.
		

Crossrefs

Programs

  • Mathematica
    (See the program at A205560.)

A205674 Prime(A202560(n)), the n-th number s(k) such that 3 divides s(k)-s(j) for some j

Original entry on oeis.org

2, 2, 5, 7, 2, 5, 11, 7, 13, 2, 5, 11, 17, 2, 5, 11, 17, 23, 7, 13, 19, 7, 13, 19, 31, 2, 5, 11, 17, 23, 29, 7, 13, 19, 31, 37, 2, 5, 11, 17, 23, 29, 41, 2, 5, 11, 17, 23, 29, 41, 47, 2, 5, 11, 17, 23, 29, 41, 47, 53, 7, 13, 19, 31, 37, 43, 7, 13, 19, 31, 37, 43, 61, 2, 5
Offset: 1

Views

Author

Clark Kimberling, Jan 30 2012

Keywords

Comments

For a guide to related sequences, see A205558.

Examples

			(See the example at A205560.)
		

Crossrefs

Programs

  • Mathematica
    (See the program at A205560.)

A205673 Prime(A202560(n)), the n-th number s(k) such that 3 divides s(k)-s(j) for some j

Original entry on oeis.org

5, 11, 11, 13, 17, 17, 17, 19, 19, 23, 23, 23, 23, 29, 29, 29, 29, 29, 31, 31, 31, 37, 37, 37, 37, 41, 41, 41, 41, 41, 41, 43, 43, 43, 43, 43, 47, 47, 47, 47, 47, 47, 47, 53, 53, 53, 53, 53, 53, 53, 53, 59, 59, 59, 59, 59, 59, 59, 59, 59, 61, 61, 61, 61, 61, 61
Offset: 1

Views

Author

Clark Kimberling, Jan 30 2012

Keywords

Comments

For a guide to related sequences, see A205558.

Examples

			(See the example at A205560.)
		

Crossrefs

Programs

  • Mathematica
    (See the program at A205560.)
Showing 1-7 of 7 results.