This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.
%I A245451 #6 Jul 22 2014 16:01:49 %S A245451 1,2,4,3,8,9,16,6,5,27,32,18,64,81,25,12,128,7,256,54,125,243,512,36, %T A245451 10,729,15,162,1024,49,2048,24,625,2187,50,14,4096,6561,3125,108,8192, %U A245451 343,16384,486,75,19683,32768,72,20,21,15625,1458,65536,35,250,324,78125,59049,131072,98,262144,177147,375,48 %N A245451 Self-inverse permutation of nonnegative integers, A075158-conjugate of gray code: a(n) = 1 + A075157(A003188(A075158(n-1))). %H A245451 Antti Karttunen, <a href="/A245451/b245451.txt">Table of n, a(n) for n = 1..1024</a> %H A245451 <a href="/index/Per#IntegerPermutation">Index entries for sequences that are permutations of the natural numbers</a> %F A245451 a(n) = 1 + A075157(A003188(A075158(n-1))). %o A245451 (Scheme) (define (A245451 n) (+ 1 (A075157 (A003188 (A075158 (- n 1)))))) %Y A245451 Inverse: A245452. %Y A245451 Cf. A003188, A075157, A075158. %Y A245451 Similar permutations: A245454, A122111, A241909, A241916. %K A245451 nonn %O A245451 1,2 %A A245451 _Antti Karttunen_, Jul 22 2014