Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

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

1,2

COMMENT

a(1)=1; for n>0: a(3*n-1)=3*n+1, a(3*n)=3*n, a(3*n+1)=3*n-1.

a(a(n))=n (self-inverse permutation); for n>1: a(n) = n iff n == 0 modulo 3.

Take natural numbers, exchange trisections starting with 2 and 4.

LINKS

Eric Weisstein's World of Mathematics, Alternating Permutations

Reinhard Zumkeller, Illustration for A074066-A074068

Index entries for sequences that are permutations of the natural numbers

FORMULA

For n>1: a(n) = 3*floor(n/3) + (n mod 3)^2 * (-1)^(n mod 3); a(1)=1.

CROSSREFS

Cf. A064429, A074067, A074068.

Sequence in context: A071890 A021702 A010651 this_sequence A067016 A022295 A132668

Adjacent sequences: A074063 A074064 A074065 this_sequence A074067 A074068 A074069

KEYWORD

nonn,nice

AUTHOR

Reinhard Zumkeller (reinhard.zumkeller(AT)gmail.com), Aug 17 2002

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 September 5 19:27 EDT 2008. Contains 143485 sequences.


AT&T Labs Research