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.

A329126 a(n) is the least positive number which yields a multiple of n when its decimal digits (which are necessarily 0's and 1's) are read in any base.

Original entry on oeis.org

1, 110, 101010, 111100, 100010001000100010, 1111110, 10000010000010000010000010000010000010, 11111111000, 1010101010101010100, 1100110011001100110, 100000000010000000001000000000100000000010000000001000000000100000000010000000001000000000100000000010, 11111111111100
Offset: 1

Views

Author

Alon Ran, Nov 05 2019

Keywords

Comments

a(n) might be called the "smallest trans-basic multiple of n."
In order to be a valid binary number, the terms may contain only 0's and 1's.
The number of 1's in a(n) is conjectured to be n; the number of 0's separating each one digit is usually A268336(n)-1 for small n. The number of trailing 0's is A051903(n).
The first 21 terms have been found and verified to be minimal via an advanced search; the 13th term (see b-file) contains 146 digits, and in general for every prime n the corresponding a(n) is conjectured to contain 2+(n-1)^2 0's and 1's.
A lower bound for a(n) is given by a(A032742(n)). Proof: If a(n) were smaller than a(A032742(n)), then a(A032742(n)) would not be the smallest trans-basic multiple of A032742(n); a(n) would be. By definition a(n) is the smallest trans-basic multiple of n, so we have a contradiction; QED.
To verify a trans-basic multiple of n for n > 2, one must only: A) make sure the string has some multiple of n of '1' digits; B) make sure the string ends with at least one '0' digit; and C) check that, for all prime bases below n, the resulting number is divisible by n. If these three conditions are met, the string is a trans-basic multiple of n.
While the formula given below is guaranteed to provide a trans-basic multiple of n, it does not always yield a(n) which by definition is the smallest such number. [Corrected by M. F. Hasler, Nov 14 2019]
From N. J. A. Sloane, Nov 12 2019: (Start)
For each n, the values of (string a(n) read in base b)/n for b = 1,2,3,... give a sequence of integers.
For n=1 this is the all-1's sequence A000012.
For n=2, a(2) = 110 which in base b is b+b^2. Divided by 2 we get (b+b^2)/2, which evaluated at b = 1,2,3,4,... is 1,3,6,10,..., the triangular numbers A000217.
For n=3, we get (b+b^3+b^5)/3, which is A220892.
For n=4, we get A328994. (End)
See A329000 = (1, 6, 42, 60, 139810, 126, ...) for a(n) converted from base 2 to base 10, i.e., the numbers which yield the terms here when written in base 2. - M. F. Hasler, Nov 09 2021

Examples

			a(3) = 101010:
  101010_2  =     42 =    14*3;
  101010_3  =    273 =    91*3;
  101010_4  =   1092 =   364*3;
  101010_5  =   3255 =  1085*3;
  101010_6  =   7998 =  2666*3;
  101010_7  =  17157 =  5719*3;
  101010_8  =  33288 = 11096*3;
  101010_9  =  59787 = 19929*3;
  101010_10 = 101010 = 33670*3;
  101010_11 = 162393 = 54131*3;
  101010_12 = 250572 = 83524*3;
and so on. All the resulting values are multiples of 3.
		

Crossrefs

Cf. A000012, A000217, A051903, A220892, A268336, A329338 (an upper bound), A328994.
A329000 gives a(n) read in base 2 and converted to base 10.
See also A329443.

Programs

  • PARI
    \\ See A329338 for an upper bound which equals a(n) in many cases, e.g., all n < 14 except for n = 10. - M. F. Hasler, Nov 10 2021

Formula

To generate an upper bound on a(n), start with n 1's (this is required to ensure that it is divisible by n in bases n+1, 2n+1, etc.)
Next, place A268336(n)-1 0's in between the 1's (this ensures that the powers that are added will always sum to 0 (mod n)).
Finally, add A051903(n) 0's on the right (this is to ensure that the number will be divisible by n in bases that are roots of factors of n).
Note that this formula does not always yield the minimal solution a(n). For instance, a(10) is obtained from the above result by grouping the 1's in pairs and separating the pairs by two 0's.
a(n) <= A329338(n), with equality except for n = 10, 14, 15, ... - M. F. Hasler, Nov 14 2019

Extensions

I have weakened some of the assertions in the Comments section, since they seemed to be unproved. See Alon Ran's comments (see Links). - N. J. A. Sloane, Dec 02 2019
Definition corrected, following a remark by Don Reble, by M. F. Hasler, Nov 09 2021
The present definition has been reworded by Peter Munn, Nov 17 2021, and by N. J. A. Sloane, Nov 29 2021

A349934 Array read by ascending antidiagonals: A(n, s) is the n-th s-Catalan number.

Original entry on oeis.org

1, 2, 1, 5, 3, 1, 14, 15, 4, 1, 42, 91, 34, 5, 1, 132, 603, 364, 65, 6, 1, 429, 4213, 4269, 1085, 111, 7, 1, 1430, 30537, 52844, 19845, 2666, 175, 8, 1, 4862, 227475, 679172, 383251, 70146, 5719, 260, 9, 1, 16796, 1730787, 8976188, 7687615, 1949156, 204687, 11096, 369, 10, 1
Offset: 1

Views

Author

Stefano Spezia, Dec 06 2021

Keywords

Examples

			The array begins:
n\s |  1    2     3      4      5
----+----------------------------
  1 |  1    1     1      1      1 ...
  2 |  2    3     4      5      6 ...
  3 |  5   15    34     65    111 ...
  4 | 14   91   364   1085   2666 ...
  5 | 42  603  4269  19845  70146 ...
  ...
		

Crossrefs

Cf. A000012 (n=1), A220892 (n=4).
Cf. A000108 (s=1), A099251 (s=2), A264607 (s=3).
Cf. A349933.

Programs

  • Mathematica
    T[n_,k_,s_]:=If[k==0,1,Coefficient[(Sum[x^i,{i,0,s}])^n,x^k]]; A[n_,s_]:=T[2n,s n,s]-T[2n,s n+1,s]; Flatten[Table[A[n-s+1,s],{n,10},{s,n}]]
  • PARI
    T(n, k, s) = polcoef((sum(i=0, s, x^i))^n, k);
    A(n, s) = T(2*n, s*n, s) - T(2*n, s*n+1, s); \\ Michel Marcus, Dec 10 2021

Formula

A(n, s) = T(2*n, s*n, s) - T(2*n, s*n+1, s), where T(n, k, s) is the s-binomial coefficient defined as the coefficient of x^k in (Sum_{i=0..s} x^i)^n.
A(2, n) = A000027(n+1).
A(3, n) = A006003(n+1).

A220893 G.f.: 1/H(-x), where H(x) = (1+8*x+22*x^2+8*x^3+x^4)/(1-x)^6.

Original entry on oeis.org

1, 14, 105, 560, 2296, 6880, 8904, -62320, -641704, -3698240, -15975896, -51517200, -89612104, 292372640, 3914285704, 24216707920, 110047971096, 378638107520, 797868873704, -1090920314960, -23361420852104, -156886807005600, -750668428691896, -2739638121913840, -6634132579281704
Offset: 0

Views

Author

N. J. A. Sloane, Dec 30 2012

Keywords

Crossrefs

Cf. A220892.
Showing 1-3 of 3 results.