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.

A306230 Lexicographically earliest sequence of distinct positive terms such that for any n > 0, G(n) <> G(a(n)) (where G denotes the Golomb's sequence A001462).

Original entry on oeis.org

2, 1, 4, 3, 6, 5, 9, 10, 7, 8, 12, 11, 16, 17, 18, 13, 14, 15, 20, 19, 24, 25, 26, 21, 22, 23, 29, 30, 27, 28, 34, 35, 36, 31, 32, 33, 39, 40, 37, 38, 45, 46, 47, 48, 41, 42, 43, 44, 51, 52, 49, 50, 57, 58, 59, 60, 53, 54, 55, 56, 63, 64, 61, 62, 70, 71, 72
Offset: 1

Views

Author

Rémy Sigrist, Jan 30 2019

Keywords

Comments

This sequence is a self-inverse permutation of the natural numbers.
For any n > 0, let b(n) = a(n) - n; the sequence b is unbounded.

Examples

			The first terms of the sequence, alongside G, are:
  n   a(n)  G(n)
  --  ----  ----
   1     2     1
   2     1     2
   3     4     2
   4     3     3
   5     6     3
   6     5     4
   7     9     4
   8    10     4
   9     7     5
  10     8     5
  11    12     5
  12    11     6
  13    16     6
  14    17     6
  15    18     6
  16    13     7
  17    14     7
  18    15     7
  19    20     7
  20    19     8
		

Crossrefs

See A306229 for a similar sequence.
Cf. A001462.

Programs

  • PARI
    See Links section.