login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A166044
Permutation of nonnegative integers: a(n) tells which integer is in the same position in the square array A163336 as where n is located in the array A163357.
4
0, 5, 4, 1, 2, 15, 14, 3, 8, 9, 44, 45, 46, 7, 6, 47, 48, 49, 52, 53, 54, 59, 58, 55, 56, 57, 68, 69, 38, 51, 50, 39, 40, 41, 36, 37, 70, 67, 66, 71, 72, 77, 76, 73, 34, 35, 30, 31, 28, 25, 24, 29, 42, 43, 10, 11, 12, 13, 16, 17, 18, 23, 22, 19, 20, 141, 140, 21, 26, 27, 134
OFFSET
0,2
EXAMPLE
The top left 8 X 8 corner of A163357:
0 1 14 15 16 19 20 21
3 2 13 12 17 18 23 22
4 7 8 11 30 29 24 25
5 6 9 10 31 28 27 26
58 57 54 53 32 35 36 37
59 56 55 52 33 34 39 38
60 61 50 51 46 45 40 41
63 62 49 48 47 44 43 42
The top left 9 X 9 corner of A163336:
0 5 6 47 48 53 54 59 60
1 4 7 46 49 52 55 58 61
2 3 8 45 50 51 56 57 62
15 14 9 44 39 38 69 68 63
16 13 10 43 40 37 70 67 64
17 12 11 42 41 36 71 66 65
18 23 24 29 30 35 72 77 78
19 22 25 28 31 34 73 76 79
20 21 26 27 32 33 74 75 80
12 is in position (1,3) in A163357, while A163336(1,3) = 46. Thus a(12) = 46.
CROSSREFS
Inverse: A166043. a(n) = A163336(A163358(n)) = A163334(A163360(n)). Fixed points: A165467. Cf. also A166042.
Sequence in context: A136042 A268911 A351123 * A190287 A087707 A198352
KEYWORD
nonn
AUTHOR
Antti Karttunen, Oct 06 2009
STATUS
approved