login
This site is supported by donations to The OEIS Foundation.
Logo

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A126007 Involution of nonnegative integers: Keep the least significant quaternary digit q0 of n fixed, but swap the positions of digits q1 <-> q2, q3 <-> q4, ..., etc. in the base-4 expansion of n (where n = ... + q4*256 + q3*64 + q2*16 + q1*4 + q0) 3
0, 1, 2, 3, 16, 17, 18, 19, 32, 33, 34, 35, 48, 49, 50, 51, 4, 5, 6, 7, 20, 21, 22, 23, 36, 37, 38, 39, 52, 53, 54, 55, 8, 9, 10, 11, 24, 25, 26, 27, 40, 41, 42, 43, 56, 57, 58, 59, 12, 13, 14, 15, 28, 29, 30, 31, 44, 45, 46, 47, 60, 61, 62, 63, 256, 257, 258, 259, 272 (list; graph; refs; listen; history; internal format)
OFFSET

0,3

LINKS

Index entries for sequences that are permutations of the natural numbers

FORMULA

a(n) = (n mod 4) + 4*A126006([n/4]), where brackets stand for the floor function.

PROG

(MIT Scheme:)

(define (A126007 n) (+ (modulo n 4) (* 4 (A126006 (floor->exact (/ n 4))))))

CROSSREFS

a(n) = A057300(A126008(n)) = A126008(A057300(n)).

Sequence in context: A074270 A007120 A092973 * A004832 A076801 A032807

Adjacent sequences:  A126004 A126005 A126006 * A126008 A126009 A126010

KEYWORD

nonn,base

AUTHOR

Antti Karttunen (His-Firstname.His-Surname(AT)gmail.com), Jan 02 2007

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
Recent Additions | More pages | Superseeker | Maintained by The OEIS Foundation Inc.

Content is available under The OEIS End-User License Agreement .

Last modified February 17 19:13 EST 2012. Contains 206085 sequences.