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

A271373 Triangle T(n,k) read by rows giving the number of k-digit polydivisible numbers (see A144688) in base n with 1 <= k <= A109783(n).

Original entry on oeis.org

2, 1, 3, 3, 3, 3, 2, 2, 4, 6, 8, 8, 7, 4, 1, 5, 10, 17, 21, 21, 21, 13, 10, 6, 4, 6, 15, 30, 45, 54, 54, 49, 46, 21, 3, 1, 7, 21, 49, 87, 121, 145, 145, 145, 121, 92, 56, 33, 20, 14, 7, 3, 1, 1, 8, 28, 74, 148, 238, 324, 367, 367, 320, 258, 188, 122, 69, 37, 12, 6, 3
Offset: 2

Views

Author

Martin Renner, Apr 05 2016

Keywords

Examples

			The triangle begins
n\k 1  2  3  4  5  6  7  8  9 10 ...
2:  2  1
3:  3  3  3  3  2  2
4:  4  6  8  8  7  4  1
5:  5 10 17 21 21 21 13 10  6  4
...
		

Crossrefs

Cf. A109783 (row lengths), A143671 (row n=10), A144688, A271374 (row sums).

Programs

  • Maple
    b:=10; # Base
    P:={seq(i,i=1..b-1)}: # Polydivisible numbers
    M:=[nops(P)+1]: # Number of k-digit polydivisible numbers
    for i from 2 while nops(P)>0 do
      Q:={}:
      for n from 1 to nops(P) do
        for j from 0 to b-1 do
          if P[n]*b+j mod i = 0 then Q:={op(Q),P[n]*b+j}: fi:
        od:
      od:
      M:=[op(M),nops(Q)]:
      P:=Q;
    od:
    T||b:=op(M[1..nops(M)-1]); # Table row T(n,k) for n = b

Formula

T(n,k) ~ (n-1)*n^(k-1)/k!
T(10,k) = A143671(k), 1 <= k <= 25.

Extensions

Rows n=17 to n=25 added to b-file by Max Alekseyev, Sep 11 2021

A109032 a(n) is the largest number such that when written in base n, for each possible k, the number having the first k digits of a(n) is divisible by k.

Original entry on oeis.org

2, 510, 10801, 8002800, 328224963, 543132112659030, 1625617313969282, 976950495904635536636, 3608528850368400786036725, 633984966211379026884314402, 830642837707972528309709136652, 311178293035966860075741106050464008245, 418859156568815767928583230192107024079856024
Offset: 2

Views

Author

Don Reble, Aug 17 2005

Keywords

Comments

This is not monotonic: a(14) > a(15).

Crossrefs

Cf. A109783.

Extensions

a(13)-a(32) from Karl W. Heuer, Jan 08 2015

A271374 Total number of polydivisible numbers in base n.

Original entry on oeis.org

3, 16, 38, 128, 324, 1068, 2569, 8381, 20457, 58174, 148059, 441493, 916146, 3722968, 8407790, 23909586, 64576509, 178009925, 466027279, 1409607602, 3507905894, 9694292108, 25391646456, 73838562312, 191793924162, 550333004128
Offset: 2

Views

Author

Martin Renner, Apr 05 2016

Keywords

Examples

			There are a(10) = 20457 polydivisible numbers in base 10, which are listed in A144688.
		

Crossrefs

Row sums of A271373.

Formula

a(n) = Sum_{k=1..A109783(n)} A271373(n,k).
a(n) ~ (n-1)*(exp(n)-1)/n.

Extensions

a(16) from Seiichi Manyama, Sep 01 2019
a(17)-a(18) from Seiichi Manyama, Sep 02 2019
a(19)-a(27) from Max Alekseyev, Sep 08 2021

A380359 a(n) is the number of integers in base n such that all the integers given by their first k digits are divisible by k and which cannot be extended further.

Original entry on oeis.org

1, 3, 8, 21, 54, 145, 367, 1039, 2492, 6709, 16799, 46610, 95597, 368134, 831886, 2245056, 6084180, 15798495, 41456343, 119786906, 292818176, 788255058, 2061079489, 5753392327, 14984432350
Offset: 2

Views

Author

Inigo Quilez, Jan 22 2025

Keywords

Examples

			a(10)=2492 because from all A271374(10)=20457 polydivisible numbers, only 2492 cannot be further expanded into a larger polydivisible number. One such number is 4836545640368400: 4 is divisible by 1, 48 is divisible by 2, 483 is divisible by 3, 4836 is divisible by 4, and so on until 4836545640368400 which is divisible by 16; but one cannot extend it further since no digit (0 to 9) appended to 4836545640368400 would result in a number divisible by k=17.
		

Crossrefs

Showing 1-4 of 4 results.