login

Revision History for A352952

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

Showing entries 1-10 | older changes
a(1) = 3; a(2) = 5; a(n+1) = a(n) + b(n), where b(n) = max {a(n-1)+-1, a(n-2)+-1, a(n-3)+-1, ..., a(1)+-1} such that a(n) + b(n) is a prime.
(history; published version)
#13 by N. J. A. Sloane at Sat Jun 04 13:58:50 EDT 2022
STATUS

proposed

approved

#12 by Michel Marcus at Mon Apr 11 10:56:39 EDT 2022
STATUS

editing

proposed

Discussion
Tue Apr 12
02:35
Ya-Ping Lu: Sure, Michel. I am still not clear about what exactly "approved" status is.
03:10
Michel Marcus: look at this screen, you have : AUTHOR	Ya-Ping Lu, Apr 10 2022; and below you have STATUS  proposed (approved is struck out)
#11 by Michel Marcus at Mon Apr 11 08:57:54 EDT 2022
STATUS

proposed

editing

Discussion
Mon Apr 11
10:56
Michel Marcus: please next time do NOT add a bfile before sequence is approved
#10 by Ya-Ping Lu at Mon Apr 11 07:26:21 EDT 2022
STATUS

editing

proposed

Discussion
Mon Apr 11
08:57
Michel Marcus: I wrote : AFTER sequence is approved  !!!  it was not clear enough ???
#9 by Ya-Ping Lu at Mon Apr 11 07:23:31 EDT 2022
KEYWORD

fini,nonn,full,changed

Discussion
Mon Apr 11
07:26
Ya-Ping Lu: Added key words (fini and full) and uploaded b-file.
#8 by Ya-Ping Lu at Mon Apr 11 07:22:18 EDT 2022
COMMENTS

This sequence is finite and the rest of the terms, a(44) through a(111) are: 286633, 288433, 290233, 290443, 292993, 294793, 294799, 589591, 878023, 906793, 909343, 1204141, 2082163, 2376961, 2667193, 2961991, 5338951, 5631943, 8593933, 13932883, 16894873, 22233823, 25195813, 26399953, 26400163, 29362153, 32324143, 32324251, 61686403, 67025353, 67320151, 134345503, 136722463, 204042613, 236366863, 238743823, 271068073, 276407023, 343727173, 346689163, 352028113, 384352363, 451672513, 451672621, 798361783, 1250034403, 1701707023, 2153379643, 2156341633, 2188665883, 2188694653, 2221018903, 2226357853, 2229319843, 2230523983, 2230524193, 2262848443, 2268187393, 2271149383, 2271444181, 4497802033, 4949474653, 7220918833, 7288238983, 7320563233, 9592007413, 9592009963, 9592599553.

This sequence is finite and has 111 terms, which are given in the b-file.

LINKS

Ya-Ping Lu, <a href="/A352952/b352952.txt">Table of n, a(n) for n = 1..111</a>

#7 by Ya-Ping Lu at Mon Apr 11 00:47:44 EDT 2022
KEYWORD

fini,nonn,changed

STATUS

proposed

editing

#6 by Ya-Ping Lu at Mon Apr 11 00:30:05 EDT 2022
STATUS

editing

proposed

Discussion
Mon Apr 11
00:32
Michel Marcus: This sequence is finite : then needs keyword fini
00:33
Michel Marcus: a(44) through a(111) are : etc   : should rather go to b-file AFTER sequence is approved
#5 by Ya-Ping Lu at Mon Apr 11 00:30:01 EDT 2022
EXAMPLE

For n = 6, a(1) through a(the first 6) terms are [3, 5, 7, 13, 19, 31] and , in the list [19+-1, 13+-1, 7+-1, 5+-1, 3+-1], 13-1 is the first element largest number that gives a prime number when added to a(6), and thus . Thus, b(6) = 13 - 1 = 12 and b(7) = a(6) + b(6) = 43.

#4 by Ya-Ping Lu at Mon Apr 11 00:22:02 EDT 2022
NAME

allocated for Ya-Ping Lu

a(1) = 3; a(2) = 5; a(n+1) = a(n) + b(n), where b(n) = max {a(n-1)+-1, a(n-2)+-1, a(n-3)+-1, ..., a(1)+-1} such that a(n) + b(n) is a prime.

DATA

3, 5, 7, 13, 19, 31, 43, 73, 103, 109, 211, 313, 523, 733, 751, 1483, 1693, 1801, 2551, 4243, 6793, 9343, 10093, 10303, 12853, 14653, 17203, 19753, 22303, 24103, 25903, 26113, 28663, 28771, 54673, 83443, 112213, 140983, 169753, 171553, 200323, 229093, 257863

OFFSET

1,1

COMMENTS

This sequence is finite and the rest of the terms, a(44) through a(111) are: 286633, 288433, 290233, 290443, 292993, 294793, 294799, 589591, 878023, 906793, 909343, 1204141, 2082163, 2376961, 2667193, 2961991, 5338951, 5631943, 8593933, 13932883, 16894873, 22233823, 25195813, 26399953, 26400163, 29362153, 32324143, 32324251, 61686403, 67025353, 67320151, 134345503, 136722463, 204042613, 236366863, 238743823, 271068073, 276407023, 343727173, 346689163, 352028113, 384352363, 451672513, 451672621, 798361783, 1250034403, 1701707023, 2153379643, 2156341633, 2188665883, 2188694653, 2221018903, 2226357853, 2229319843, 2230523983, 2230524193, 2262848443, 2268187393, 2271149383, 2271444181, 4497802033, 4949474653, 7220918833, 7288238983, 7320563233, 9592007413, 9592009963, 9592599553.

a(n) == 1 (mod 6) if n > 2. For n = 3 or > 4, b(n) = a(n-i) - 1, where 1 < b < n.

EXAMPLE

For n = 6, a(1) through a(6) are [3, 5, 7, 13, 19, 31] and in the list [19+-1, 13+-1, 7+-1, 5+-1, 3+-1], 13-1 is the first element that gives a prime number when added to a(6), and thus b(6) = 13 - 1 = 12 and b(7) = a(6) + b(6) = 43.

PROG

(Python)

from sympy import isprime; L = [3, 5]

while 1:

for j in range(2, len(L)+1):

s = L[-1] + L[-j]

if isprime(s+1): L.append(s+1); break

elif isprime(s-1): L.append(s-1); break

else: break

print(*L, sep = ', ')

CROSSREFS

Cf. A337347.

KEYWORD

allocated

nonn

AUTHOR

Ya-Ping Lu, Apr 10 2022

STATUS

approved

editing