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.

A360964 Triangle T(n, k), n > 0, k = 0..n-1, read by rows: T(n, k) is the least base b >= 2 where the number of digits of n and k are different.

Original entry on oeis.org

2, 2, 2, 2, 2, 3, 2, 2, 2, 2, 2, 2, 2, 2, 5, 2, 2, 2, 2, 5, 6, 2, 2, 2, 2, 5, 6, 7, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 2, 2, 2, 2, 2, 2, 2, 2, 3, 10, 2, 2, 2, 2, 2, 2, 2, 2, 3, 10, 11, 2, 2, 2, 2, 2, 2, 2, 2, 3, 10, 11, 12, 2, 2, 2, 2, 2, 2, 2, 2, 3, 10, 11, 12, 13
Offset: 1

Views

Author

Rémy Sigrist, Feb 27 2023

Keywords

Comments

Leading zeros are ignored (and 0 is assumed to have length 0).

Examples

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

Crossrefs

Programs

  • PARI
    T(n,k) = { for (b=2, oo, if (#digits(n,b) != #digits(k,b), return (b))) }

Formula

T(n, 0) = 2.
T(n, n-1) = A052410(n) for any n > 1.