login

Revision History for A117190

(Bold, blue-underlined text is an addition; faded, red-underlined text is a deletion.)

Showing all changes.
Integer k such that 10^n + k = A115062(n).
(history; published version)
#5 by Alois P. Heinz at Wed Aug 13 22:57:43 EDT 2014
STATUS

editing

approved

#4 by Alois P. Heinz at Wed Aug 13 22:57:38 EDT 2014
MAPLE

a:= n-> (t->((p, q)->`if`(q-t<t-p, q, p)-t)(`if`(t=1, -1,

prevprime(t)), nextprime(t)))(10^n):

seq(a(n), n=0..80); # Alois P. Heinz, Aug 13 2014

STATUS

approved

editing

#3 by Russ Cox at Fri Mar 30 17:36:43 EDT 2012
AUTHOR

_Rick L. Shepherd (rshepherd2(AT)hotmail.com), _, Mar 02 2006

Discussion
Fri Mar 30
17:36
OEIS Server: https://oeis.org/edit/global/176
#2 by N. J. A. Sloane at Fri May 19 03:00:00 EDT 2006
OFFSET

0,54

KEYWORD

sign,new

sign

#1 by N. J. A. Sloane at Fri Feb 24 03:00:00 EST 2006
NAME

Integer k such that 10^n + k = A115062(n).

DATA

1, 1, 1, -3, 7, 3, 3, -9, 7, 7, 19, 3, -11, -29, -27, -11, 61, -3, 3, -39, -11, -101, 9, -23, 7, 13, 67, -99, -209, -27, -11, -27, -21, -9, 193, -23, 67, 43, -59, 3, -17, 109, 63, 57, 31, -9, -33, 33, -33, 9, -57, 121, -231, 171, 31, 21, 3, -93, -149, 19, 7, -39, -83, 121, -51, 49, 49, 49, 99, 9, 33, -53, 39, 79, -47, 129, 133

OFFSET

0,5

COMMENTS

For terms after the first several, 10^n + a(n) is only known to be a highly probable prime. If, for m>0, 10^n - m and 10^n + m are both nearest primes to 10^n, a(n) = -m. For example, a(17) = -3 as 10^17-3 and 10^17+3 are the nearest primes to 10^17. Similarly, a(45) = -9 with both 10^45-9 and 10^45+9 prime.

FORMULA

a(n) = A115062(n) - 10^n.

EXAMPLE

a(4) = 7 as 10^4 + 7 = 10007 = A115062(4), the nearest prime to 10^4.

CROSSREFS

Cf. A115062.

KEYWORD

sign

AUTHOR

Rick L. Shepherd (rshepherd2(AT)hotmail.com), Mar 02 2006

STATUS

approved