The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A308315 Lexicographically earliest sequence of different terms starting with a nonprime such that one of the terms of {a(n), a(n+1)} is prime and the other not, with [a(n) + a(n+1)] = a nonprime. 2
1, 3, 6, 2, 4, 5, 9, 7, 8, 13, 12, 23, 10, 11, 14, 19, 15, 17, 16, 29, 20, 31, 18, 37, 21, 41, 22, 43, 25, 47, 27, 53, 24, 61, 26, 59, 28, 67, 32, 73, 33, 71, 34, 83, 35, 79, 36, 89, 30, 103, 38, 97, 39, 101, 40, 107, 45, 109, 44, 127, 42, 113, 46, 131, 49, 137, 48, 139, 50, 151, 51, 149, 52, 157, 55, 163, 54, 167, 57, 173, 58, 179, 56 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
COMMENTS
This is likely a permutation of the positive integers.
a(2*n) is always a prime. - Sean A. Irvine, May 21 2019
a(2*n+1) is always a nonprime. - Sean A. Irvine, May 21 2019
LINKS
EXAMPLE
The sequence starts with 1,3,6,2,4,5,9,7,... and we see that:
a(1) + a(2) = 1 + 3 = 4 (nonprime sum of a nonprime and a prime);
a(2) + a(3) = 3 + 6 = 9 (nonprime sum of a prime and a nonprime);
a(3) + a(4) = 6 + 2 = 8 (nonprime sum of a nonprime and a prime);
a(4) + a(5) = 2 + 4 = 6 (nonprime sum of a prime and a nonprime);
a(5) + a(6) = 4 + 5 = 9 (nonprime sum of a nonprime and a prime); etc.
CROSSREFS
Cf. A308319 (an equivalent sequence that starts with a prime).
Sequence in context: A016614 A019769 A092948 * A200474 A154858 A169837
KEYWORD
nonn
AUTHOR
Carole Dubois and Eric Angelini, May 19 2019
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified June 7 18:53 EDT 2024. Contains 373206 sequences. (Running on oeis4.)