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

A329339 a(n) = 2^A051903(n)*Sum_{k=0..n-1} 2^(A268336(n)*k): upper bound for A329000(n).

Original entry on oeis.org

1, 6, 42, 60, 139810, 126, 139620524162, 2040, 349524, 699050, 2537779500750160131246576896002, 16380, 44612382091907903486070965589630128805126146, 1256584717458, 153722867280912930, 1048560, 231587712222682663714935471840371426842813815977643091627066215779128553111554, 1048572
Offset: 1

Views

Author

M. F. Hasler, Nov 13 2019

Keywords

Comments

This corresponds to the upper bound for A329000 as explained in the "FORMULA" for A329126.
Differs from A329000(n) for n = 10, 14, 15, ...

Crossrefs

Cf. A329000, A329126, A329338 (a(n) written in binary), A067029, A051903.

Programs

  • PARI
    apply( A329339(n)={my(m=2^(lcm(lcm(znstar(n)[2]),n)/n)); (m^n-1)\(m-1)<1,vecmax(factor(n)[,2]))}, [1..20])

Formula

a(n) = 2^A051903(n)*(m^n-1)/(m-1) with m = 2^A268336(n).

A327321 Triangular array read by rows: row n shows the coefficients of the polynomial p(x,n) constructed as in Comments; these polynomials form a strong divisibility sequence.

Original entry on oeis.org

1, 1, 3, 7, 18, 27, 5, 21, 27, 27, 61, 300, 630, 540, 405, 91, 549, 1350, 1890, 1215, 729, 547, 3822, 11529, 18900, 19845, 10206, 5103, 205, 1641, 5733, 11529, 14175, 11907, 5103, 2187, 4921, 44280, 177228, 412776, 622566, 612360, 428652, 157464, 59049, 7381
Offset: 1

Views

Author

Clark Kimberling, Nov 08 2019

Keywords

Comments

Suppose q is a rational number such that the number r = sqrt(q) is irrational. The function (r x + r)^n - (r x - 1/r)^n of x can be represented as k*p(x,n), where k is a constant and p(x,n) is a product of nonconstant polynomials having gcd = 1; the sequence p(x,n) is a strong divisibility sequence of polynomials; i.e., gcd(p(x,h),p(x,k)) = p(x,gcd(h,k)). For A327320, r = sqrt(3). If x is an integer, then p(x,n) is a strong divisibility sequence of integers.

Examples

			p(x,3) = (1/k)((4 (7 + 18 x + 27 x^2))/(3 sqrt(3))), where k = 4/(3 sqrt(3)).
First six rows:
   1;
   1,   3;
   7,  18,   27;
   5,  21,   27,   27;
  61, 300,  630,  540,  405;
  91, 549, 1350, 1890, 1215, 729;
The first six polynomials, not factored:
1, 1 + 3 x, 7 + 18 x + 27 x^2, 5 + 21 x + 27 x^2 + 27 x^3, 61 + 300 x + 630 x^2 + 540 x^3 + 405 x^4, 91 + 549 x + 1350 x^2 + 1890 x^3 + 1215 x^4 + 729 x^5.
The first six polynomials, factored:
1, 1 + 3 x, 7 + 18 x + 27 x^2, (1 + 3 x) (5 + 6 x + 9 x^2), 61 + 300 x + 630 x^2 + 540 x^3 + 405 x^4, (1 + 3 x) (13 + 6 x + 9 x^2) (7 + 18 x + 27 x^2).
		

Crossrefs

Programs

  • Mathematica
    c[poly_] := If[Head[poly] === Times, Times @@ DeleteCases[(#1 (Boole[
    MemberQ[#1, x] || MemberQ[#1, y] || MemberQ[#1, z]] &) /@
    Variables /@ #1 &)[List @@ poly], 0], poly];
    r = Sqrt[3]; f[x_, n_] := c[Factor[Expand[(r x + r)^n - (r x - 1/r)^n]]];
    Table[f[x, n], {n, 1, 6}]
    Flatten[Table[CoefficientList[f[x, n], x], {n, 1, 12}]]  (* A327321 *)
    (* Peter J. C. Moses, Nov 01 2019 *)

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

A329338 a(n) = {1{0}^(A268336(n)-1)}^(n-1){1}{0}^A051903(n): upper bound for A329126(n).

Original entry on oeis.org

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

Views

Author

M. F. Hasler, Nov 13 2019

Keywords

Comments

This is the upper bound for A329126 as explained in the "FORMULA" there.
It is sharp for all n except 10, 14, 15, ...

Crossrefs

Cf. A329126, A329000, A329339 (this converted from binary to decimal), A268336, A051903.

Programs

  • PARI
    apply( {A329338(n)=my(k=lcm(lcm([p-1|p<-factor(n)[,1]]), n)/n); fromdigits(concat(vector(n, i, Vec(1, if(i1, vecmax(factor(n)[,2])+1)))))}, [1..16])

Formula

a(n) = A007088(A329339(n)), where A007088 = binary numbers and A329339(n) = 2^A051903(n)*(m^n-1)/(m-1) with m = 2^A268336(n).

A329443 a(n) is the GCD of the binary representation of n interpreted in any numeric base.

Original entry on oeis.org

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

Views

Author

Rémy Sigrist, Nov 13 2019

Keywords

Examples

			For n = 42:
- the binary representation of 42 is "101010",
- the corresponding interpretations in the first bases b, alongside their GCD, are:
  b   b+b^3+b^5  GCD
  --  ---------  ---
   2         42   42
   3        273   21
   4       1092   21
   5       3255   21
   6       7998    3
- as b + b^3 + b^5 is always divisible by 3, we have a(42) = 3.
		

Crossrefs

Programs

  • PARI
    a(n) = my (g=n, d=binary(n)); for (b=3, oo, g = gcd(g, fromdigits(d,b)); if (g < b, return (g)))

Formula

k divides a(A329000(k)) for any k > 0.

A328994 a(n) = n^2*(1+n)*(1+n^2)/4.

Original entry on oeis.org

1, 15, 90, 340, 975, 2331, 4900, 9360, 16605, 27775, 44286, 67860, 100555, 144795, 203400, 279616, 377145, 500175, 653410, 842100, 1072071, 1349755, 1682220, 2077200, 2543125, 3089151, 3725190, 4461940, 5310915, 6284475, 7395856, 8659200, 10089585
Offset: 1

Views

Author

N. J. A. Sloane, Nov 12 2019

Keywords

Crossrefs

Programs

  • Magma
    [(n^2+n^3+n^4+n^5)/4: n in [1..40]] // Vincenzo Librandi, Nov 13 2019
  • Mathematica
    CoefficientList[Series[(1+9x+15x^2+5x^3)/(1-x)^6,{x,0,33}],x] (* Vincenzo Librandi, Nov 13 2019 *)

Formula

From Vincenzo Librandi, Nov 13 2019: (Start)
a(n) = 6*a(n-1) - 15*a(n-2) + 20*a(n-3) - 15*a(n-4) + 6*a(n-5) - a(n-6).
G.f.: x*(1+9*x+15*x^2+5*x^3)/(1-x)^6. (End)

A331206 Numbers k such that A053985(k) divides k.

Original entry on oeis.org

1, 2, 3, 4, 5, 6, 8, 10, 12, 15, 16, 17, 20, 21, 24, 30, 32, 34, 40, 42, 48, 51, 60, 63, 64, 65, 68, 69, 80, 81, 84, 85, 96, 102, 120, 126, 128, 130, 136, 138, 160, 162, 168, 170, 192, 195, 204, 207, 240, 243, 252, 255, 256, 257, 260, 261, 272, 273, 276, 277
Offset: 1

Views

Author

Alon Ran, Jan 12 2020

Keywords

Comments

It appears that A053985(a(n)) / a(n) is always either 1, -1, 3 or -3.
This sequence seems to contain A329000.

Examples

			15 is written 1111 base 2 and (-2)^3 + (-2)^2 + (-2)^1 +(-2)^0 = -8 + 4 - 2 + 1 = -5, 15 is divisible by -5.
		

Programs

  • PARI
    is(k) = k%fromdigits(binary(k), -2) == 0; \\ Jinyuan Wang, Jan 15 2020
Showing 1-7 of 7 results.