Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A119257
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A119257 A permutation of the positive integers made by reversing the order of the composites within each run of composites (1 and primes are left alone). +0
1
1, 2, 3, 4, 5, 6, 7, 10, 9, 8, 11, 12, 13, 16, 15, 14, 17, 18, 19, 22, 21, 20, 23, 28, 27, 26, 25, 24, 29, 30, 31, 36, 35, 34, 33, 32, 37, 40, 39, 38, 41, 42, 43, 46, 45, 44, 47, 52, 51, 50, 49, 48, 53, 58, 57, 56, 55, 54, 59, 60, 61, 66, 65, 64, 63, 62, 67, 70, 69, 68, 71, 72 (list; graph; listen)
OFFSET

1,2

EXAMPLE

The run of composites (24,25,26,27,28) becomes (28,27,26,25,24).

PROGRAM

(PARI) {m=73; print1(1, ", "); n=2; while(n<=m, while(isprime(n), print1(n, ", "); n++); k=n; while(!isprime(n), n++); forstep(a=n-1, k, -1, print1(a, ", ")))} - (Klaus Brockhaus, Aug 16 2006)

CROSSREFS

Sequence in context: A029804 A084690 A072794 this_sequence A102455 A073678 A031981

Adjacent sequences: A119254 A119255 A119256 this_sequence A119258 A119259 A119260

KEYWORD

nonn

AUTHOR

Leroy Quet (qq-quet(AT)mindspring.com), Jul 23 2006

EXTENSIONS

More terms from Klaus Brockhaus (klaus-brockhaus(AT)t-online.de), Aug 16 2006

page 1

Search completed in 0.002 seconds

Lookup | Welcome | Find friends | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
More pages | Superseeker | Maintained by N. J. A. Sloane (njas@research.att.com)

Last modified July 25 07:41 EDT 2008. Contains 142293 sequences.


AT&T Labs Research