cp's OEIS Frontend

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.

A331275 a(n) is the greatest ternary anagram of n not yet in the sequence.

Original entry on oeis.org

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, 27, 36, 63, 30, 39, 66, 57, 64, 75, 28, 37, 58, 31, 40, 67, 48, 49, 76, 55, 46, 73, 42, 43, 70, 69, 68, 79, 54, 45, 72, 33, 38, 65, 60, 61, 78, 29, 34, 59, 32, 41
Offset: 1

Views

Author

Rémy Sigrist, Jan 13 2020

Keywords

Comments

Leading zeros are ignored.
This sequence is a self-inverse permutation of the natural numbers.

Examples

			The first terms, in decimal and in ternary, are:
  n   a(n)  ter(n)  ter(a(n))
  --  ----  ------  ---------
   1     1       1          1
   2     2       2          2
   3     3      10         10
   4     4      11         11
   5     7      12         21
   6     6      20         20
   7     5      21         12
   8     8      22         22
   9     9     100        100
  10    12     101        110
  11    21     102        210
  12    10     110        101
  13    13     111        111
  14    22     112        211
  15    19     120        201
		

Crossrefs

Cf. A331274 (binary analog).

Programs

  • PARI
    See Links section.