--
You received this message because you are subscribed to the Google Groups "SeqFan" group.
To unsubscribe from this group and stop receiving emails from it, send an email to seqfan+un...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/seqfan/241d27af-e3ae-43e8-b0de-b07a51cddf68n%40googlegroups.com.
Hi Tom,I sent an answer to SeqFans but I got an "Message has been deleted" error message. I don't know what is wrong.Here is my answer:The following list is of n, 2*n+1, and the record value:
1, 3, 1
2, 5, 2
6, 13, 3
8, 17, 4
21, 43, 5
111, 223, 7
281, 563, 8
1638, 3277, 9
4563, 9127, 11
55991, 111983, 12
83153, 166307, 13
439236, 878473, 14
519063, 1038127, 15
1253421, 2506843, 16
3277, 111983, 166307, and 878473 are not primes.Best,Ami
You received this message because you are subscribed to a topic in the Google Groups "SeqFan" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/seqfan/HXbjgqOQCUw/unsubscribe.
To unsubscribe from this group and all its topics, send an email to seqfan+un...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/seqfan/CAF0qcNPNGaeE%2BTnqyVMsuYH3royrf2bfG8ULgHrx6j_c_pRBbg%40mail.gmail.com.
I believe the next term in this sequence is 487, and that there was a missed term 11 at the start.here is my python code, change the value 600 to adjust the k searched up to, removing the print lines will make it run faster.here is the sequence up to k = 1200 according to my program[2, 3, 4, 5, 7, 8, 11, 13, 17, 22, 32, 38, 43, 52, 223, 487, 652]from math import sqrt, log10, floor
def isPrime(num):
a=2
while a<=sqrt(num):
if num%a<1:
return False
a=a+1
return num>1
sequence = []
for k in range(2, 600):
limit = log10(k)/log10(2)
prime = False
for m in range(1, floor(limit)):
if isPrime((k - 2**m) * (2**m) + 1):
prime = True
else:
prime = False
break
if prime == True:
sequence.append(k)
print("yes for", k, "! ! ! ! ! ! !")
else:
print("NO for", k)
print(sequence)
On Tue, Sep 2, 2025 at 2:20 PM Amiram Eldar <amiram...@gmail.com> wrote:
The following list is of n, 2*n+1, and the record value:
1, 3, 1
2, 5, 2
6, 13, 3
8, 17, 4
21, 43, 5
111, 223, 7
281, 563, 8
1638, 3277, 9
4563, 9127, 11
55991, 111983, 12
83153, 166307, 13
439236, 878473, 14
519063, 1038127, 15
1253421, 2506843, 16
3277, 111983, 166307, and 878473 are not primes.
On Tuesday, September 2, 2025 at 10:01:41 AM UTC+3 tomaszo...@gmail.com wrote:
To view this discussion visit https://groups.google.com/d/msgid/seqfan/117e86ff-2ed8-49f3-b6f9-21eda2ae2752n%40googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/seqfan/117e86ff-2ed8-49f3-b6f9-21eda2ae2752n%40googlegroups.com.