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

A368194 Irregular table T(n, k), n > 0, k = 1..A368195(n), read by rows: the n-th row lists the numbers that can be obtained by replacing any positive number without leading zeros, say m, appearing in the decimal expansion of n by one of the divisors of m.

Original entry on oeis.org

1, 1, 2, 1, 3, 1, 2, 4, 1, 5, 1, 2, 3, 6, 1, 7, 1, 2, 4, 8, 1, 3, 9, 1, 2, 5, 10, 1, 11, 1, 2, 3, 4, 6, 11, 12, 1, 11, 13, 1, 2, 7, 11, 12, 14, 1, 3, 5, 11, 15, 1, 2, 4, 8, 11, 12, 13, 16, 1, 11, 17, 1, 2, 3, 6, 9, 11, 12, 14, 18, 1, 11, 13, 19, 1, 2, 4, 5, 10, 20
Offset: 1

Views

Author

Rémy Sigrist, Dec 16 2023

Keywords

Comments

The n-th row starts with 1, ends with n, and contains the divisors of n (A027750).

Examples

			Table T(n, k) begins:
    1;
    1, 2;
    1, 3;
    1, 2, 4;
    1, 5;
    1, 2, 3, 6;
    1, 7;
    1, 2, 4, 8;
    1, 3, 9;
    1, 2, 5, 10;
    1, 11;
    1, 2, 3, 4, 6, 11, 12;
    1, 11, 13;
    1, 2, 7, 11, 12, 14;
    1, 3, 5, 11, 15;
    1, 2, 4, 8, 11, 12, 13, 16;
    1, 11, 17;
    1, 2, 3, 6, 9, 11, 12, 14, 18;
      ...
		

Crossrefs

Cf. A027750, A323286, A342072, A368195, A368313 (binary variant).

Programs

  • PARI
    See Links section.

Formula

T(n, 1) = 1.
T(n, A368195(n)) = n.

A368314 a(n) is the number of numbers that can be obtained by replacing any positive number without leading zeros, say m, appearing in the binary expansion of n by one of the divisors of m.

Original entry on oeis.org

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

Views

Author

Rémy Sigrist, Dec 21 2023

Keywords

Comments

a(n) gives the number of terms in the n-th row of A368313.

Examples

			For n = 42: the 42nd row of A368313 contains 12 terms (1, 2, 3, 5, 6, 7, 10, 14, 21, 22, 26, 42), so a(42) = 12.
		

Crossrefs

Cf. A000005, A368195 (decimal variant), A368313.

Programs

  • PARI
    See Links section.

Formula

a(n) >= A000005(n).
a(2^k) = k + 1 for any k >= 0.

A368315 a(n) gives the number of ways to go from n to 1 with steps consisting of replacing a positive number without leading zero, say m, appearing in the binary expansion of a number, by a proper divisor of m.

Original entry on oeis.org

1, 1, 1, 2, 2, 3, 2, 4, 4, 7, 6, 8, 6, 8, 6, 8, 8, 17, 14, 21, 18, 28, 18, 20, 16, 27, 26, 26, 18, 31, 22, 16, 22, 37, 34, 58, 48, 76, 52, 58, 48, 98, 80, 102, 80, 105, 76, 48, 40, 85, 80, 96, 80, 153, 104, 76, 70, 99, 98, 119, 82, 136, 116, 32, 44, 123, 98
Offset: 1

Views

Author

Rémy Sigrist, Dec 21 2023

Keywords

Examples

			a(10) = 7 for we have seven ways to go from 10 to 1:
    10 -> 1,
    10 -> 2 -> 1,
    10 -> 5 -> 1,
    10 -> 5 -> 3 -> 1,
    10 -> 6 -> 1,
    10 -> 6 -> 2 -> 1,
    10 -> 6 -> 3 -> 1.
		

Crossrefs

Cf. A011782, A368198 (decimal variant), A368313, A368314.

Programs

  • PARI
    See Links section.

Formula

a(1) = 1.
a(n) = Sum_{k = A368314(n)-1} a(A368313(k)) for any n > 1.
a(2^k) = A011782(k) for any k >= 0.
Showing 1-3 of 3 results.