Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A135762
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A135762 Start with sequence of positive integers, then swap a(i) and a(i-1) if a(i) is an odd prime. +0
2
1, 3, 2, 5, 4, 7, 6, 8, 9, 11, 10, 13, 12, 14, 15, 17, 16, 19, 18, 20, 21, 23, 22, 24, 25, 26, 27, 29, 28, 31, 30, 32, 33, 34, 35, 37, 36, 38, 39, 41, 40, 43, 42, 44, 45, 47, 46, 48, 49, 50, 51, 53, 52, 54, 55, 56, 57, 59, 58, 61, 60, 62, 63, 64, 65, 67, 66, 68, 69, 71, 70, 73 (list; graph; listen)
OFFSET

1,2

EXAMPLE

a(1)=1; then

a(2)=3 and a(3)=2 because p=3 is odd prime and p and p-1 are swapped.

MATHEMATICA

r=Range[100]; Do[If[PrimeQ[r[[i]]], {r[[i]], r[[i-1]]}={r[[i-1]], r[[i]]}], {i, 3, 97, 2}]; r

CROSSREFS

Cf. A135761.

Sequence in context: A117303 A054068 A054069 this_sequence A066250 A066251 A114882

Adjacent sequences: A135759 A135760 A135761 this_sequence A135763 A135764 A135765

KEYWORD

nonn

AUTHOR

Zak Seidov (zakseidov(AT)yahoo.com), Nov 27 2007

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