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 A331275 #9 Jan 14 2020 01:26:22 %S A331275 1,2,3,4,7,6,5,8,9,12,21,10,13,22,19,16,25,18,15,24,11,14,23,20,17,26, %T A331275 27,36,63,30,39,66,57,64,75,28,37,58,31,40,67,48,49,76,55,46,73,42,43, %U A331275 70,69,68,79,54,45,72,33,38,65,60,61,78,29,34,59,32,41 %N A331275 a(n) is the greatest ternary anagram of n not yet in the sequence. %C A331275 Leading zeros are ignored. %C A331275 This sequence is a self-inverse permutation of the natural numbers. %H A331275 Rémy Sigrist, <a href="/A331275/b331275.txt">Table of n, a(n) for n = 1..6561</a> %H A331275 Rémy Sigrist, <a href="/A331275/a331275.gp.txt">PARI program for A331275</a> %H A331275 <a href="/index/Per#IntegerPermutation">Index entries for sequences that are permutations of the natural numbers</a> %e A331275 The first terms, in decimal and in ternary, are: %e A331275 n a(n) ter(n) ter(a(n)) %e A331275 -- ---- ------ --------- %e A331275 1 1 1 1 %e A331275 2 2 2 2 %e A331275 3 3 10 10 %e A331275 4 4 11 11 %e A331275 5 7 12 21 %e A331275 6 6 20 20 %e A331275 7 5 21 12 %e A331275 8 8 22 22 %e A331275 9 9 100 100 %e A331275 10 12 101 110 %e A331275 11 21 102 210 %e A331275 12 10 110 101 %e A331275 13 13 111 111 %e A331275 14 22 112 211 %e A331275 15 19 120 201 %o A331275 (PARI) See Links section. %Y A331275 Cf. A331274 (binary analog). %K A331275 nonn,base %O A331275 1,2 %A A331275 _Rémy Sigrist_, Jan 13 2020