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!)
A228092 Lexicographically first sequence of nonprime terms (with no duplicates) that turns into a sequence of prime terms (with no duplicates) by applying the "comma-permutation" simultaneously at every comma. [The "comma-permutation" is explained in the Comments section.] 2
1, 21, 12, 32, 33, 91, 14, 72, 111, 15, 92, 321, 301, 102, 322, 721, 901, 702, 931, 312, 332, 942, 152, 153, 74, 75, 34, 93, 703, 711, 121, 731, 132, 762, 361, 932, 972, 171, 741, 951, 154, 704, 104, 912, 981, 161, 362, 781, 371, 372, 992, 3002, 3012, 1011, 782, 1022, 7021, 993, 112, 3031, 994, 323 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
COMMENTS
The "comma-permutation" swaps the last digit of a(n) and the first digit of a(n+1) for every n. For instance [2016,2017] becomes [2012,6017] and [2016,2017,2018] turns into [2012,6012,7018].
The sequence is always extended with the smallest integer not yet present that does not lead to a contradiction.
No term ends in "0" as this "0" would start a term of the prime sequence.
LINKS
Rémy Sigrist, Table of n, a(n) for n = 1..10000 (first 205 terms from Eric Angelini and Jean-Marc Falcoz)
EXAMPLE
Under the "comma-permutation" the nine nonprime terms [1,21,12,32,33,91,14,72,111,15] become the primes [2,11,13,23,29,31,17,41,211].
PROG
(PARI) See Links section.
CROSSREFS
Cf. A274408.
Sequence in context: A260527 A260529 A166033 * A071262 A083466 A307312
KEYWORD
nonn,base
AUTHOR
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 May 10 22:16 EDT 2024. Contains 372388 sequences. (Running on oeis4.)