|
Search: id:A059459
|
|
|
| A059459 |
|
a(1) = 2; a(n+1) is obtained by writing a(n) in binary and trying to complement just one bit, starting with the least significant bit, until a new prime is reached. |
|
+0 6
|
|
| 2, 3, 7, 5, 13, 29, 31, 23, 19, 17, 8209, 8273, 10321, 2129, 2131, 83, 67, 71, 79, 1103, 1039, 1031, 1063, 1061, 1069, 263213, 263209, 263201, 265249, 265313, 264289, 280673, 280681, 280697, 280699, 280703, 280639, 280607, 280603, 280859, 280843, 281867, 265483, 265547, 265579, 265571, 266083, 266081, 266089, 266093, 266029
(list; graph; listen)
|
|
|
OFFSET
|
1,1
|
|
|
COMMENT
|
This is the lexicographically least (in positions of the flipped bits) such sequence.
It is not known if the sequence is infinite.
"The prime maze - consider the prime numbers in base 2, starting with the smallest prime (10)2. One can move to another prime number by either changing only one digit of the number, or adding a 1 to the front of the number. Can we reach 11 = (1011)2.? 333? The Mersennes?" - Caldwell
|
|
LINKS
|
T. D. Noe, Table of n, a(n) for n=1..104
Chris K. Caldwell (caldwell(AT)utm.edu), Prime Links + +
W. Paulsen, The Prime Maze, Fib. Quart., 40 (2002), 272-279.
Carlos Rivera, Problem 25.- William Paulsen's Prime Numbers Maze
|
|
MAPLE
|
A059459search := proc(a, upto_bit, upto_length) local i, n, t; if(nops(a) >= upto_length) then RETURN(a); fi; t := a[nops(a)]; for i from 0 to upto_bit do n := XORnos(t, (2^i)); if(isprime(n) and (not member(n, a))) then print([op(a), n]); RETURN(A059459search([op(a), n], upto_bit, upto_length)); fi; od; RETURN([op(a), `and no more`]); end;
E.g. call as: A059459search([2], 128, 200);
|
|
CROSSREFS
|
Cf. A059458 (for this sequence written in binary), A059471. A strictly ascending analogue: A059661, positions of the flipped bits: A059663.
Sequence in context: A117928 A064011 A050367 this_sequence A124440 A067363 A083188
Adjacent sequences: A059456 A059457 A059458 this_sequence A059460 A059461 A059462
|
|
KEYWORD
|
nonn,base,nice
|
|
AUTHOR
|
Gregory Allen (jukebox_999(AT)hotmail.com), Feb 02 2001
|
|
EXTENSIONS
|
More terms and Maple program from Antti Karttunen Feb 03 2001, who remarks that he was able to extend the sequence to the 104th term 151115727453207491916143 using the bit-flip-limit 128.
|
|
|
Search completed in 0.002 seconds
|