Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

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

1,1

COMMENT

If (prime(n+1)-1)/2 is even/odd then a(n) is the next odd/even number.

MATHEMATICA

bb={}; od=-1; ev=0; Do[If[OddQ[(Prime[i]-1)/2], ev=ev+2; bb=Append[bb, ev], od=od+2; bb=Append[bb, od]], {i, 2, 200}]; bb

CROSSREFS

Cf. A105363.

Sequence in context: A111932 A121456 A127535 this_sequence A127366 A064786 A043302

Adjacent sequences: A105361 A105362 A105363 this_sequence A105365 A105366 A105367

KEYWORD

nonn

AUTHOR

Zak Seidov (zakseidov(AT)yahoo.com), Apr 01 2005

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 December 6 22:55 EST 2009. Contains 170429 sequences.


AT&T Labs Research