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-2 of 2 results.

A339695 Let G be the undirected graph with nodes {g_k, k >= 0} such that for any k >= 0, g_k is connected to g_{k+1} and g_{A006068(k)} is connected to g_{A006068(k+1)}; a(n) is the distance between g_0 and g_n.

Original entry on oeis.org

0, 1, 2, 2, 3, 4, 4, 3, 4, 5, 6, 6, 6, 5, 6, 5, 6, 7, 8, 8, 9, 10, 10, 9, 9, 8, 7, 8, 9, 9, 8, 7, 8, 9, 10, 10, 11, 12, 12, 11, 12, 13, 14, 14, 14, 13, 14, 13, 13, 12, 12, 11, 10, 9, 10, 11, 12, 13, 14, 14, 13, 13, 12, 11, 12, 13, 14, 14, 15, 16, 16, 15, 16
Offset: 0

Views

Author

Rémy Sigrist, Dec 13 2020

Keywords

Crossrefs

See A339731 for a similar sequence.

Programs

  • PARI
    See Links section.

Formula

abs(a(n) - a(k)) <= abs(n-k) for any n, k >= 0.
a(n) = A339697(n, 0).

A339697 Square array T(n, k) read by antidiagonals, n >= 0 and k >= 0; let G be the undirected graph with nodes {g_k, k >= 0} such that for any k >= 0, g_k is connected to g_{k+1} and g_{A006068(k)} is connected to g_{A006068(k+1)}; T(n, k) is the distance between g_n and g_k.

Original entry on oeis.org

0, 1, 1, 2, 0, 2, 2, 1, 1, 2, 3, 1, 0, 1, 3, 4, 2, 1, 1, 2, 4, 4, 3, 2, 0, 2, 3, 4, 3, 3, 3, 1, 1, 3, 3, 3, 4, 2, 2, 2, 0, 2, 2, 2, 4, 5, 3, 1, 2, 1, 1, 2, 1, 3, 5, 6, 4, 2, 2, 1, 0, 1, 2, 2, 4, 6, 6, 5, 3, 3, 2, 1, 1, 2, 3, 3, 5, 6, 6, 5, 4, 4, 3, 2, 0, 2, 3, 4, 4, 5, 6
Offset: 0

Views

Author

Rémy Sigrist, Dec 13 2020

Keywords

Examples

			Array T(n, k) begins:
  n\k|  0  1  2  3  4  5  6  7  8  9  10  11  12
  ---+------------------------------------------
    0|  0  1  2  2  3  4  4  3  4  5   6   6   6
    1|  1  0  1  1  2  3  3  2  3  4   5   5   5
    2|  2  1  0  1  2  3  2  1  2  3   4   4   4
    3|  2  1  1  0  1  2  2  2  3  4   5   5   5
    4|  3  2  2  1  0  1  1  2  3  4   5   5   4
    5|  4  3  3  2  1  0  1  2  3  4   5   4   3
    6|  4  3  2  2  1  1  0  1  2  3   4   4   4
    7|  3  2  1  2  2  2  1  0  1  2   3   3   3
    8|  4  3  2  3  3  3  2  1  0  1   2   2   2
    9|  5  4  3  4  4  4  3  2  1  0   1   1   2
   10|  6  5  4  5  5  5  4  3  2  1   0   1   2
   11|  6  5  4  5  5  4  4  3  2  1   1   0   1
   12|  6  5  4  5  4  3  4  3  2  2   2   1   0
		

Crossrefs

Programs

  • PARI
    See Links section.

Formula

T(n, n) = 0.
T(n, k) = T(k, n).
T(n, k) <= abs(n-k).
T(m, k) <= T(m, n) + T(n, k).
T(n, 0) = A339695(n).
Showing 1-2 of 2 results.