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.

Showing 1-6 of 6 results.

A277696 Permutation of natural numbers: a(1) = 1; a(2n) = A277817(1+a(n)), a(2n+1) = A277816(a(n)).

Original entry on oeis.org

1, 2, 5, 3, 10, 7, 13, 4, 39, 15, 26, 9, 11, 18, 29, 6, 20, 92, 75, 24, 27, 49, 58, 14, 21, 16, 19, 31, 42, 62, 41, 8, 78, 33, 52, 270, 172, 196, 147, 47, 312, 56, 51, 126, 101, 143, 82, 23, 22, 34, 45, 28, 80, 32, 35, 64, 59, 96, 90, 153, 118, 95, 61, 12, 40, 224, 150, 66, 57, 129, 116, 1134, 534, 606, 316, 752, 404, 520, 207, 120, 55, 1400, 600
Offset: 1

Views

Author

Antti Karttunen, Nov 06 2016

Keywords

Comments

This sequence can be represented as a binary tree. Each left hand child is produced as A277817(1+n), and each right hand child as A277816(n), when the parent node contains n:
1
................../ \..................
2 5
3......../ \........10 7......../ \........13
/ \ / \ / \ / \
/ \ / \ / \ / \
/ \ / \ / \ / \
4 39 15 26 9 11 18 29
6 20 92 75 24 27 49 58 14 21 16 19 31 42 62 41
etc.

Crossrefs

Inverse: A277695.
Cf. A277701 (the rightmost edge of the tree).

Formula

a(1) = 1; and then after, a(2n) = A277817(1+a(n)), a(2n+1) = A277816(a(n)).

A277710 Square array A(r,c), where each row r lists all numbers k for which A264977(k) = r, read by downwards antidiagonals: A(1,1), A(1,2), A(2,1), A(1,3), A(2,2), A(3,1), etc.

Original entry on oeis.org

1, 5, 2, 13, 10, 3, 29, 26, 39, 4, 41, 58, 75, 20, 9, 61, 82, 147, 52, 21, 6, 85, 122, 207, 116, 45, 78, 7, 125, 170, 291, 164, 93, 150, 11, 8, 173, 250, 411, 244, 189, 294, 19, 40, 81, 209, 346, 579, 340, 381, 414, 35, 104, 105, 18, 253, 418, 819, 500, 657, 582, 67, 232, 165, 42, 23, 281, 506, 927, 692, 765, 822, 131, 328, 213, 90, 43, 12
Offset: 1

Views

Author

Antti Karttunen, Oct 29 2016

Keywords

Comments

Alternative description: Each row r lists the positions of A019565(r) in A277330.
Odd terms occur only on rows with odd index, and even terms only on rows with even index. Specifically: all terms k on row r are equal to r modulo 4, thus the first differences of each row are all multiples of 4.
All the terms on any particular row are either all multiples of two (or respectively: three, or six), or none of them are.

Examples

			The top left 12 x 12 corner of the array:
   1,   5,  13,  29,  41,   61,   85,  125,  173,  209,  253,  281
   2,  10,  26,  58,  82,  122,  170,  250,  346,  418,  506,  562
   3,  39,  75, 147, 207,  291,  411,  579,  819,  927, 1155, 1635
   4,  20,  52, 116, 164,  244,  340,  500,  692,  836, 1012, 1124
   9,  21,  45,  93, 189,  381,  657,  765,  873, 1317, 1533, 1749
   6,  78, 150, 294, 414,  582,  822, 1158, 1638, 1854, 2310, 3270
   7,  11,  19,  35,  67,  131,  259,  311,  359,  515,  619,  655
   8,  40, 104, 232, 328,  488,  680, 1000, 1384, 1672, 2024, 2248
  81, 105, 165, 213, 333,  429,  669,  861, 1341, 1725, 2685, 2721
  18,  42,  90, 186, 378,  762, 1314, 1530, 1746, 2634, 3066, 3498
  23,  43,  79,  83, 103,  155,  163,  203,  307,  323,  403,  611
  12, 156, 300, 588, 828, 1164, 1644, 2316, 3276, 3708, 4620, 6540
		

Crossrefs

Transpose: A277709.
Column 1: A277711, sorted into ascending order: A277817.
Row 1: A277701, Row 2: A277712 (= 2*A277701), Row 3: A277713, Row 4: 4*A277701, Row 5: A277715, Row 6: 2*A277713. Row 8: 8*A277701, Row 10: 2*A277715.
Cf. A277824 (the index of the column where n is located in this array).
Cf. A019565, A264977, A277330, A277816 and permutation pair A277695 & A277696.

Formula

A(r,1) = A277711(r); for c > 1, A(r,c) = A277816(A(r,c-1)).
Other identities. For all r>=1, c>=1:
A(2*r,c) = 2*A(r,c).
A(r,c) modulo 4 = r modulo 4.

Extensions

The dispersion-style formula added by Antti Karttunen, Nov 06 2016

A277817 Positions of zeros in A277815; sequence A277711 sorted into ascending order.

Original entry on oeis.org

0, 1, 2, 3, 4, 6, 7, 8, 9, 12, 14, 15, 16, 17, 18, 23, 24, 28, 30, 31, 32, 33, 34, 36, 46, 47, 48, 49, 56, 60, 62, 63, 64, 65, 66, 68, 72, 73, 81, 87, 92, 94, 95, 96, 97, 98, 111, 112, 120, 124, 126, 127, 128, 129, 130, 132, 135, 136, 137, 143, 144, 145, 146, 153, 159, 162, 174, 175, 177, 184, 188, 190, 191, 192, 193, 194, 196, 222
Offset: 0

Views

Author

Antti Karttunen, Nov 06 2016

Keywords

Comments

Numbers n for which there is no such k < n that A264977(k) = A264977(n).
After zero, numbers not in the range of A277816.

Crossrefs

Sequence A277711 sorted into ascending order.
Positions of ones in A277824.
Cf. A277884 (a left inverse).

Formula

Other identities. For all n >= 0:
A277884(a(n)) = n.

A277695 Permutation of natural numbers: a(1) = 1; for n > 1, if A277815(n) = 0, a(n) = 2*a(A277814(n)-1), otherwise a(n) = 1 + 2*a(A277815(n)).

Original entry on oeis.org

1, 2, 4, 8, 3, 16, 6, 32, 12, 5, 13, 64, 7, 24, 10, 26, 128, 14, 27, 17, 25, 49, 48, 20, 257, 11, 21, 52, 15, 256, 28, 54, 34, 50, 55, 98, 515, 99, 9, 65, 31, 29, 97, 105, 51, 96, 40, 514, 22, 101, 43, 35, 1031, 513, 81, 42, 69, 23, 57, 104, 63, 30, 512, 56, 108, 68, 111, 100, 139, 199, 163, 110, 196, 203, 19, 211, 2063, 33, 195, 53, 1030, 47
Offset: 1

Views

Author

Antti Karttunen, Nov 06 2016

Keywords

Crossrefs

Formula

a(1) = 1; for n > 1, if A277815(n) = 0 [when n is in A277817], a(n) = 2*a(A277814(n)-1), otherwise a(n) = 1 + 2*a(A277815(n)).
a(1) = 1, a(A277817(1+n)) = 2*a(n), a(A277816(n)) = 1 + 2*a(n). [Implicit form.]

A277815 a(n) = the largest k < n for which A264977(k) = A264977(n), or 0 if no such k exists.

Original entry on oeis.org

0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 2, 7, 0, 5, 0, 0, 0, 0, 0, 11, 4, 9, 14, 0, 0, 17, 10, 15, 0, 13, 0, 0, 0, 0, 0, 19, 0, 25, 22, 3, 8, 29, 18, 23, 28, 21, 0, 0, 0, 0, 34, 27, 20, 37, 30, 47, 0, 33, 26, 31, 0, 41, 0, 0, 0, 0, 0, 35, 0, 57, 38, 55, 0, 0, 50, 39, 44, 53, 6, 43, 16, 0, 58, 79, 36, 61, 46, 0, 56, 73, 42, 71, 0, 45, 0, 0, 0, 0, 0, 51
Offset: 0

Views

Author

Antti Karttunen, Nov 06 2016

Keywords

Crossrefs

Cf. A264977, A277695, A277814, A277817 (the positions of zeros).
Left inverse of A277816.

Programs

  • Scheme
    (define (A277815 n) (if (zero? n) n (let ((v (A264977 n))) (let loop ((k (- n 1))) (cond ((zero? k) 0) ((= v (A264977 k)) k) (else (loop (- k 1))))))))

Formula

For all n >= 0, a(A277816(n)) = n.

A277826 a(n) = the least k for which A264977(k) = A264977(n).

Original entry on oeis.org

0, 1, 2, 3, 4, 1, 6, 7, 8, 9, 2, 7, 12, 1, 14, 15, 16, 17, 18, 7, 4, 9, 14, 23, 24, 17, 2, 15, 28, 1, 30, 31, 32, 33, 34, 7, 36, 17, 14, 3, 8, 1, 18, 23, 28, 9, 46, 47, 48, 49, 34, 15, 4, 17, 30, 47, 56, 33, 2, 31, 60, 1, 62, 63, 64, 65, 66, 7, 68, 33, 14, 47, 72, 73, 34, 3, 28, 17, 6, 23, 16, 81, 2, 23, 36, 1, 46, 87, 56, 73, 18, 47, 92, 9
Offset: 0

Views

Author

Antti Karttunen, Nov 06 2016

Keywords

Crossrefs

Cf. A277701, A277712, A277713, A277715 (positions of 1, 2, 3 and 9 in this sequence).
Cf. A277824, A277884 and their scatter-plots.

Programs

  • Scheme
    (define (A277826 n) (let ((v (A264977 n))) (let loop ((k 0)) (if (= v (A264977 k)) k (loop (+ 1 k))))))
Showing 1-6 of 6 results.