[go: up one dir, main page]

login
Revision History for A066493 (Bold, blue-underlined text is an addition; faded, red-underlined text is a deletion.)

Showing all changes.
a(n) = least k such that f(k) = n, where f is the prime gaps function given by f(m) = prime(m+1)-prime(m) and prime(m) denotes the m-th prime, if k exists; 0 otherwise.
(history; published version)
#7 by N. J. A. Sloane at Sat Apr 29 14:00:51 EDT 2023
STATUS

proposed

approved

#6 by Michel Marcus at Sat Apr 29 12:33:32 EDT 2023
STATUS

editing

proposed

#5 by Michel Marcus at Sat Apr 29 12:32:59 EDT 2023
FORMULA

a(2*n) = A038664(n). - Michel Marcus, Apr 29 2023

EXAMPLE

a(3) = 0 since no two consecutive primes differ by 3.

Discussion
Sat Apr 29
12:33
Michel Marcus: example needed "consecutive", since 5 and 2 differ by 3.
#4 by Michel Marcus at Sat Apr 29 12:29:30 EDT 2023
EXAMPLE

a(6) = 9 since k = 9 is the smallest k making pprime(k+1)-pprime(k) = 6. a(3) = 0 since no two primes differ by 3.

a(3) = 0 since no two primes differ by 3.

CROSSREFS

Cf. A001223 (prime gaps), A038664.

#3 by Michel Marcus at Sat Apr 29 12:27:09 EDT 2023
NAME

a(n) = least k such that f(k) = n, where f is the prime gaps function given by f(m) = pprime(m+1)-pprime(m) and pprime(m) denotes the m-th prime, if k exists; 0 otherwise.

CROSSREFS

Cf. A001223 (prime gaps).

STATUS

approved

editing

#2 by N. J. A. Sloane at Tue Feb 11 19:05:24 EST 2014
AUTHOR

_Joseph L. Pe (joseph_l_pe(AT)hotmail.com), _, Jan 03 2002

Discussion
Tue Feb 11
19:05
OEIS Server: https://oeis.org/edit/global/2119
#1 by N. J. A. Sloane at Fri May 16 03:00:00 EDT 2003
NAME

a(n) = least k such that f(k) = n, where f is the prime gaps function given by f(m) = p(m+1)-p(m) and p(m) denotes the m-th prime, if k exists; 0 otherwise.

DATA

1, 2, 0, 4, 0, 9, 0, 24, 0, 34, 0, 46, 0, 30, 0, 282, 0, 99, 0, 154, 0, 189, 0, 263, 0, 367, 0, 429, 0, 590, 0, 738, 0, 217, 0, 1183, 0, 3302, 0, 2191, 0, 1879, 0, 1831, 0, 7970, 0, 3077, 0, 3427

OFFSET

1,2

COMMENTS

Obviously, a(n) = 0 for every odd n except 1. From the list, it appears that a(n) is nonzero for every even n; is this true in general? That is, for each even n, are there primes which differ by n?

EXAMPLE

a(6) = 9 since k = 9 is the smallest k making p(k+1)-p(k) = 6. a(3) = 0 since no two primes differ by 3.

MATHEMATICA

f[n_] := Prime[n + 1] - Prime[n]; g[n_] := Min[Select[Range[1, 10^4], f[ # ] == n &]]; Table[g[i], {i, 1, 50}]

KEYWORD

nonn

AUTHOR

Joseph L. Pe (joseph_l_pe(AT)hotmail.com), Jan 03 2002

STATUS

approved