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.

A205678 The number j such that 4 divides prime(k)-prime(j), where k(n)=A205677(n).

Original entry on oeis.org

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

Views

Author

Clark Kimberling, Jan 30 2012

Keywords

Comments

For a guide to related sequences, see A205558.

Examples

			(See the example at A205677.)
		

Crossrefs

Programs

  • Mathematica
    (See the program at A205677.)

A205682 (prime(k)-prime(j))/4, where the pairs (k,j) are given by A205677 and A205678.

Original entry on oeis.org

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

Views

Author

Clark Kimberling, Jan 30 2012

Keywords

Comments

For a guide to related sequences, see A205558.

Examples

			(See the example at A205677.)
		

Crossrefs

Programs

  • Mathematica
    (See the program at A205677.)

A205681 Prime(k)-prime(j), where the pairs (k,j) are given by A205677 and A205678.

Original entry on oeis.org

4, 8, 4, 8, 12, 4, 16, 12, 8, 20, 16, 12, 4, 24, 16, 12, 28, 24, 20, 12, 8, 32, 24, 20, 8, 36, 28, 24, 12, 4, 40, 36, 32, 24, 20, 12, 44, 40, 36, 28, 24, 16, 4, 48, 40, 36, 24, 16, 12, 56, 52, 48, 40, 36, 28, 16, 12, 56, 48, 44, 32, 24, 20, 8, 64, 60, 56, 48, 44, 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 A205677.)
		

Crossrefs

Programs

  • Mathematica
    (See the program at A205677.)

A205679 Prime(A205677(n)), the n-th number s(k) such that 4 divides s(k)-s(j) for some j

Original entry on oeis.org

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

Views

Author

Clark Kimberling, Jan 30 2012

Keywords

Comments

For a guide to related sequences, see A205558.

Examples

			(See the example at A205677.)
		

Crossrefs

Programs

  • Mathematica
    (See the program at A205677.)

A205680 Prime(A205678(n)), the n-th number s(j) such that 4 divides s(k)-s(j), where the pairs (k,j) are given by A205677 and A205678.

Original entry on oeis.org

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

Views

Author

Clark Kimberling, Jan 30 2012

Keywords

Comments

For a guide to related sequences, see A205558.

Examples

			(See the example at A205677.)
		

Crossrefs

Programs

  • Mathematica
    (See the program at A205677.)

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 *)

A205676 Positions of multiples of 4 in A204890 (differences of primes).

Original entry on oeis.org

5, 8, 10, 13, 18, 21, 23, 25, 26, 30, 32, 33, 36, 39, 42, 43, 47, 49, 50, 53, 54, 58, 61, 62, 65, 69, 72, 73, 76, 78, 80, 82, 83, 86, 87, 89, 93, 95, 96, 99, 100, 102, 105, 108, 111, 112, 115, 117, 118, 122, 124, 125, 128, 129, 131, 134, 135, 139, 142, 143
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,4,11,10,8,...), multiples of 4 are in positions 5,8,10,13,...
See the example at A205677.
		

Crossrefs

Programs

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