This site is supported by donations to The OEIS Foundation.

 Hints (Greetings from The On-Line Encyclopedia of Integer Sequences!)
 A133256 a(4*n+1) = 4*n+1, a(4*n+2) = 4*n+2, a(4*n+3) = 4*n+4, a(4*n+4) = 4*n+3. 3
 1, 2, 4, 3, 5, 6, 8, 7, 9, 10, 12, 11, 13, 14, 16, 15, 17, 18, 20, 19, 21, 22, 24, 23, 25, 26, 28, 27, 29, 30, 32, 31, 33, 34, 36, 35, 37, 38, 40, 39, 41, 42, 44, 43, 45, 46, 48, 47, 49, 50, 52, 51, 53, 54, 56, 55, 57, 58, 60, 59, 61, 62, 64, 63, 65, 66, 68, 67, 69, 70, 72, 71 (list; graph; refs; listen; history; text; internal format)
 OFFSET 1,2 COMMENTS A permutation of the positive integers, swapping consecutive values congruent to 3 and 4 (mod 4). - Franklin T. Adams-Watters, Jan 22 2012. LINKS MATHEMATICA Table[Which[Mod[n, 4]==3, n+1, Divisible[n, 4], n-1, True, n], {n, 40}] (* or *) Partition[Range[40], 4]/.{a_, b_, c_, d_}->{a, b, d, c}//Flatten (* Harvey P. Dale, Aug 29 2016 *) CROSSREFS Cf. A103889. Sequence in context: A275657 A107896 A107897 * A259570 A095690 A094870 Adjacent sequences:  A133253 A133254 A133255 * A133257 A133258 A133259 KEYWORD nonn AUTHOR Paul Curtz, Oct 15 2007 EXTENSIONS Definition fixed and offset changed by Franklin T. Adams-Watters, Jan 22 2012 STATUS approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recent
The OEIS Community | Maintained by The OEIS Foundation Inc.

Last modified March 24 00:12 EDT 2019. Contains 321444 sequences. (Running on oeis4.)