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.

A299150 Denominators of the positive solution to n = Sum_{d|n} a(d) * a(n/d).

Original entry on oeis.org

1, 1, 2, 2, 2, 2, 2, 2, 8, 2, 2, 4, 2, 2, 4, 8, 2, 8, 2, 4, 4, 2, 2, 4, 8, 2, 16, 4, 2, 4, 2, 8, 4, 2, 4, 16, 2, 2, 4, 4, 2, 4, 2, 4, 16, 2, 2, 16, 8, 8, 4, 4, 2, 16, 4, 4, 4, 2, 2, 8, 2, 2, 16, 16, 4, 4, 2, 4, 4, 4, 2, 16, 2, 2, 16, 4, 4, 4, 2, 16, 128, 2, 2
Offset: 1

Views

Author

Gus Wiseman, Feb 03 2018

Keywords

Examples

			Sequence begins: 1, 1, 3/2, 3/2, 5/2, 3/2, 7/2, 5/2, 27/8, 5/2, 11/2, 9/4, 13/2, 7/2.
		

Crossrefs

Programs

  • Mathematica
    nn=50;
    sys=Table[n==Sum[a[d]*a[n/d],{d,Divisors[n]}],{n,nn}];
    Denominator[Array[a,nn]/.Solve[sys,Array[a,nn]][[2]]]
    f[p_, e_] := 2^((1 + Mod[p, 2])*e - DigitCount[e, 2, 1]); a[1] = 1; a[n_] := Times @@ f @@@ FactorInteger[n]; Array[a, 100] (* Amiram Eldar, Apr 28 2023 *)
  • PARI
    a(n)={my(v=factor(n)[,2]); denominator(n*prod(i=1, #v, my(e=v[i]); binomial(2*e, e)/4^e))} \\ Andrew Howroyd, Aug 09 2018
    
  • PARI
    A299150(n) = { my(f = factor(n), m=1); for(i=1, #f~, m *= 2^(((1+(f[i,1]%2))*f[i,2]) - hammingweight(f[i,2]))); (m); }; \\ Antti Karttunen, Sep 03 2018
    
  • PARI
    for(n=1, 100, print1(denominator(direuler(p=2, n, 1/(1-p*X)^(1/2))[n]), ", ")) \\ Vaclav Kotesovec, May 08 2025

Formula

a(n) = denominator(n*A317848(n)/A165825(n)) = A165825(n)/(A037445(n) * A006519(n)). - Andrew Howroyd, Aug 09 2018
a(n) = A046644(n)/A006519(n). - Andrew Howroyd and Antti Karttunen, Aug 30 2018
From Antti Karttunen, Sep 03 2018: (Start)
a(n) = 2^A318440(n).
Multiplicative with a(2^e) = 2^A011371(e), a(p^e) = 2^A005187(e) for odd primes p.
Multiplicative with a(p^e) = 2^(((1+A000035(p))*e)-A000120(e)) for all primes p.
(End)

Extensions

Keyword:mult added by Andrew Howroyd, Aug 09 2018

A299149 Numerators of the positive solution to n = Sum_{d|n} a(d) * a(n/d).

Original entry on oeis.org

1, 1, 3, 3, 5, 3, 7, 5, 27, 5, 11, 9, 13, 7, 15, 35, 17, 27, 19, 15, 21, 11, 23, 15, 75, 13, 135, 21, 29, 15, 31, 63, 33, 17, 35, 81, 37, 19, 39, 25, 41, 21, 43, 33, 135, 23, 47, 105, 147, 75, 51, 39, 53, 135, 55, 35, 57, 29, 59, 45, 61, 31, 189, 231, 65, 33
Offset: 1

Views

Author

Gus Wiseman, Feb 03 2018

Keywords

Comments

Dirichlet convolution of a(n)/A046644(n) with itself yields A000265. - Antti Karttunen, Aug 30 2018

Examples

			Sequence begins: 1, 1, 3/2, 3/2, 5/2, 3/2, 7/2, 5/2, 27/8, 5/2, 11/2, 9/4, 13/2, 7/2.
		

Crossrefs

Programs

  • Mathematica
    nn=50;
    sys=Table[n==Sum[a[d]*a[n/d],{d,Divisors[n]}],{n,nn}];
    Numerator[Array[a,nn]/.Solve[sys,Array[a,nn]][[2]]]
    odd[n_] := n/2^IntegerExponent[n, 2]; f[p_, e_] := odd[p^e*Binomial[2*e, e]]; a[1] = 1; a[n_] := Times @@ f @@@ FactorInteger[n]; Array[a, 100] (* Amiram Eldar, Apr 30 2023 *)
  • PARI
    a(n)={my(v=factor(n)[,2]); numerator(n*prod(i=1, #v, my(e=v[i]); binomial(2*e, e)/4^e))} \\ Andrew Howroyd, Aug 09 2018
    
  • PARI
    \\ DirSqrt(v) finds u such that v = v[1]*dirmul(u, u).
    DirSqrt(v)={my(n=#v, u=vector(n)); u[1]=1; for(n=2, n, u[n]=(v[n]/v[1] - sumdiv(n, d, if(d>1&&dAndrew Howroyd, Aug 09 2018
    
  • PARI
    for(n=1, 100, print1(numerator(direuler(p=2, n, 1/(1-p*X)^(1/2))[n]), ", ")) \\ Vaclav Kotesovec, May 09 2025

Formula

a(n) = numerator(n*A317848(n)/A165825(n)) = A000265(n*A317848(n)). - Andrew Howroyd, Aug 09 2018
Sum_{k=1..n} A299149(k)/A299150(k) ~ n^2 / (2*sqrt(Pi*log(n))) * (1 + (1-gamma) / (4*log(n))), where gamma is the Euler-Mascheroni constant A001620. - Vaclav Kotesovec, May 09 2025

Extensions

Keyword:mult added by Andrew Howroyd, Aug 09 2018

A317831 Numerators of rational valued sequence f whose Dirichlet convolution with itself yields A000203 (sigma, the sum of divisors).

Original entry on oeis.org

1, 3, 2, 19, 3, 3, 4, 63, 9, 9, 6, 19, 7, 6, 6, 867, 9, 27, 10, 57, 8, 9, 12, 63, 11, 21, 11, 19, 15, 9, 16, 3069, 12, 27, 12, 171, 19, 15, 14, 189, 21, 12, 22, 57, 27, 18, 24, 867, 41, 33, 18, 133, 27, 33, 18, 63, 20, 45, 30, 57, 31, 24, 18, 22199, 21, 18, 34, 171, 24, 18, 36, 567, 37, 57, 22, 95, 24, 21, 40, 2601, 227, 63, 42, 19, 27, 33
Offset: 1

Views

Author

Antti Karttunen, Aug 10 2018

Keywords

Crossrefs

Cf. A317832 (gives the denominators).
Cf. also A000203, A299151.

Programs

Formula

a(n) = numerator of f(n), where f(1) = 1, f(n) = (1/2) * (A000203(n) - Sum_{d|n, d>1, d 1.
Sum_{k=1..n} A317831(k) / A317832(k) ~ n^2 * sqrt(Pi/(24*log(n))) * (1 - (gamma - 1 + 6*zeta'(2)/Pi^2) / (4*log(n))), where gamma is the Euler-Mascheroni constant A001620. - Vaclav Kotesovec, May 09 2025

A299152 Denominators of the positive solution to 2^(n-1) = Sum_{d|n} a(d) * a(n/d).

Original entry on oeis.org

1, 1, 1, 2, 1, 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, 8, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 8, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 4, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 16, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 4, 1, 1, 1, 1, 1, 1, 1, 1, 1
Offset: 1

Views

Author

Gus Wiseman, Feb 03 2018

Keywords

Examples

			Sequence begins: 1, 1, 2, 7/2, 8, 14, 32, 121/2, 126, 248, 512, 1003, 2048, 4064, 8176, 130539/8, 32768.
		

Crossrefs

Programs

  • Mathematica
    nn=50;
    sys=Table[2^(n-1)==Sum[a[d]*a[n/d],{d,Divisors[n]}],{n,nn}];
    Denominator[Array[a,nn]/.Solve[sys,Array[a,nn]][[2]]]
  • PARI
    up_to = 65537;
    prepareA299151perA299152(up_to) = { my(vmemo = vector(up_to)); for(n=1,up_to, vmemo[n] = if(1==n,n,(2^(n-1)-sumdiv(n,d,if((d>1)&&(dA299152 = prepareA299151perA299152(up_to);
    A299151perA299152(n) = v299151perA299152[n];
    \\ Or without memoization as:
    A299151perA299152(n) = if(1==n,n,(2^(n-1)-sumdiv(n,d,if((d>1)&&(dA299151perA299152(d)*A299151perA299152(n/d),0)))/2);
    A299152(n) = denominator(A299151perA299152(n)); \\ Antti Karttunen, Jul 29 2018

Extensions

More terms from Antti Karttunen, Jul 29 2018

A299119 Positive solution to 2^(n-1) = (1/n) * Sum_{d|n} a(d) * a(n/d).

Original entry on oeis.org

1, 2, 6, 14, 40, 84, 224, 484, 1134, 2480, 5632, 12036, 26624, 56896, 122640, 261078, 557056, 1176876, 2490368, 5237360, 11008704, 23057408, 48234496, 100635144, 209714400, 436154368, 905962860, 1878931264, 3892314112, 8052800160, 16642998272, 34359209436
Offset: 1

Views

Author

Gus Wiseman, Feb 03 2018

Keywords

Comments

For prime p, a(p) = 2^(p-2)*p. - Jon E. Schoenfield, Feb 03 2018

Crossrefs

Programs

  • Maple
    with(numtheory):
    a:= proc(n) option remember; `if`(n=1, 1, n*2^(n-2)-
           add(a(d)*a(n/d), d=divisors(n) minus {1, n})/2)
        end:
    seq(a(n), n=1..35);  # Alois P. Heinz, Mar 07 2018
  • Mathematica
    nn=50;
    sys=Table[2^(n-1)*n==Sum[a[d]*a[n/d],{d,Divisors[n]}],{n,nn}];
    Array[a,nn]/.Solve[sys,Array[a,nn]][[2]]

A317927 Numerators of rational valued sequence whose Dirichlet convolution with itself yields A005187.

Original entry on oeis.org

1, 3, 2, 19, 4, 2, 11, 63, 6, 3, 19, 13, 23, 17, 5, 867, 16, 4, 35, 5, 17, 25, 21, 11, 31, 29, 13, 113, 27, 13, 57, 3069, 13, 9, 23, 25, 71, 41, 14, 69, 79, 33, 41, 169, 9, 25, 89, 615, 259, 53, 17, 197, 51, 25, 29, 389, 20, 31, 113, 59, 117, 67, 10, 22199, 18, 14, 131, 31, 51, 71, 69, 11, 143, 77, 22, 281, 91, 35, 153, 489, 71, 85, 81, 151, 19
Offset: 1

Views

Author

Antti Karttunen, Aug 11 2018

Keywords

Comments

The first negative term is a(330) = -21.

Crossrefs

Cf. A005187, A317928 (denominators).

Programs

Formula

a(n) = numerator of f(n), where f(1) = 1, f(n) = (1/2) * (A005187(n) - Sum_{d|n, d>1, d 1.

A317931 Numerators of rational valued sequence whose Dirichlet convolution with itself yields A002487, Stern's Diatomic sequence.

Original entry on oeis.org

1, 1, 1, 3, 3, 1, 3, 5, 3, 3, 5, 3, 5, 3, 1, 35, 5, 3, 7, 9, 5, 5, 7, 5, 19, 5, 5, 9, 7, 1, 5, 63, 1, 5, 9, 9, 11, 7, 5, 15, 11, 5, 13, 15, 13, 7, 9, 35, 27, 19, 7, 15, 13, 5, 7, 15, 3, 7, 11, 3, 9, 5, -7, 231, -1, 1, 11, 15, 7, 9, 13, 15, 15, 11, 47, 21, 19, 5, 13, 105, 27, 11, 19, 15, 27, 13, 11, 25, 17, 13, 23, 21, 11, 9, 1, 63
Offset: 1

Views

Author

Antti Karttunen, Aug 11 2018

Keywords

Crossrefs

Cf. A002487, A317932 (denominators, conjectured).

Programs

Formula

a(n) = numerator of f(n), where f(1) = 1, f(n) = (1/2) * (A002487(n) - Sum_{d|n, d>1, d 1.
Showing 1-7 of 7 results.