Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

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

1,2

EXAMPLE

Start with sequence of positive integers, then swap a(i) and a(i+1) if a(i) is an odd prime:

a(1)=1, a(2)=2, then

a(3)=4 and a(4)=3 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. A135762.

Sequence in context: A119477 A053629 A113981 this_sequence A086305 A073898 A067747

Adjacent sequences: A135758 A135759 A135760 this_sequence A135762 A135763 A135764

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 23 10:48 EDT 2008. Contains 142285 sequences.


AT&T Labs Research