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-10 of 21 results. Next

A318440 a(n) = A046645(n) - A007814(n); the 2-adic valuation of A299150.

Original entry on oeis.org

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

Views

Author

Antti Karttunen, Sep 02 2018

Keywords

Comments

After two initial terms, all terms are positive.

Crossrefs

Programs

  • Mathematica
    f[p_, e_] := (1 + Mod[p, 2])*e - DigitCount[e, 2, 1]; a[1] = 0; a[n_] := Plus @@ f @@@ FactorInteger[n]; Array[a, 100] (* Amiram Eldar, Apr 28 2023 *)
  • PARI
    A007814(n) = valuation(n,2);
    A005187(n) = { my(s=n); while(n>>=1, s+=n); s; };
    A046645(n) = vecsum(apply(e -> A005187(e),factor(n)[,2]));
    A318440(n) = A046645(n) - A007814(n);

Formula

a(n) = A046645(n) - A007814(n).
a(n) = A007814(A299150(n)).
Additive with a(p^e) = (1 + (p mod 2))*e - A000120(e). - Amiram Eldar, Apr 28 2023
Sum_{k=1..n} a(k) ~ n * (log(log(n)) + B + C), where B is Mertens's constant (A077761) and C = -1 + Sum_{p prime} f(1/p) = 0.410258867603361890498..., where f(x) = -x + Sum_{k>=0} (2^(k+1)-1)*x^(2^k)/(1+x^(2^k)). - Amiram Eldar, Sep 30 2023

A046644 From square root of Riemann zeta function: form Dirichlet series Sum b_n/n^s whose square is zeta function; sequence gives denominator of b_n.

Original entry on oeis.org

1, 2, 2, 8, 2, 4, 2, 16, 8, 4, 2, 16, 2, 4, 4, 128, 2, 16, 2, 16, 4, 4, 2, 32, 8, 4, 16, 16, 2, 8, 2, 256, 4, 4, 4, 64, 2, 4, 4, 32, 2, 8, 2, 16, 16, 4, 2, 256, 8, 16, 4, 16, 2, 32, 4, 32, 4, 4, 2, 32, 2, 4, 16, 1024, 4, 8, 2, 16, 4, 8, 2, 128, 2, 4, 16, 16, 4, 8
Offset: 1

Views

Author

Keywords

Comments

From Antti Karttunen, Aug 21 2018: (Start)
a(n) is the denominator of any rational-valued sequence f(n) which has been defined as f(n) = (1/2) * (b(n) - Sum_{d|n, d>1, d
Proof:
Proof is by induction. We assume as our induction hypothesis that the given multiplicative formula for A046644 (resp. additive formula for A046645) holds for all proper divisors d|n, dA046645(p) = 1. [Remark: for squares of primes, f(p^2) = (4*b(p^2) - 1)/8, thus a(p^2) = 8.]
First we note that A005187(x+y) <= A005187(x) + A005187(y), with equivalence attained only when A004198(x,y) = 0, that is, when x and y do not have any 1-bits in the shared positions. Let m = Sum_{e} A005187(e), with e ranging over the exponents in prime factorization of n.
For [case A] any n in A268388 it happens that only when d (and thus also n/d) are infinitary divisors of n will Sum_{e} A005187(e) [where e now ranges over the union of multisets of exponents in the prime factorizations of d and n/d] attain value m, which is the maximum possible for such sums computed for all divisor pairs d and n/d. For any n in A268388, A037445(n) = 2^k, k >= 2, thus A037445(n) - 2 = 2 mod 4 (excluding 1 and n from the count, thus -2). Thus, in the recursive formula above, the maximal denominator that occurs in the sum is 2^m which occurs k times, with k being an even number, but not a multiple of 4, thus the factor (1/2) in the front of the whole sum will ensure that the denominator of the whole expression is 2^m [which thus is equal to 2^A046645(n) = a(n)].
On the other hand [case B], for squares in A050376 (A082522, numbers of the form p^(2^k) with p prime and k>0), all the sums A005187(x)+A005187(y), where x+y = 2^k, 0 < x <= y < 2^k are less than A005187(2^k), thus it is the lonely "middle pair" f(p^(2^(k-1))) * f(p^(2^(k-1))) among all the pairs f(d)*f(n/d), 1 < d < n = p^(2^k) which yields the maximal denominator. Furthermore, as it occurs an odd number of times (only once), the common factor (1/2) for the whole sum will increase the exponent of 2 in denominator by one, which will be (2*A005187(2^(k-1))) + 1 = A005187(2^k) = A046645(p^(2^k)).
(End)
From Antti Karttunen, Aug 21 2018: (Start)
The following list gives a few such pairs num(n), b(n) for which b(n) is Dirichlet convolution of num(n)/a(n). Here ε stands for sequence A063524 (1, 0, 0, ...).
Numerators Dirichlet convolution of numerator(n)/a(n) yields
------- -----------
(End)
This sequence gives an upper bound for the denominators of any rational-valued sequence obtained as the "Dirichlet Square Root" of any integer-valued sequence. - Andrew Howroyd, Aug 23 2018

Crossrefs

See A046643 for more details. See also A046645, A317940.
Cf. A299150, A299152, A317832, A317926, A317932, A317934 (for denominator sequences of other similar constructions).

Programs

Formula

From Antti Karttunen, Jul 08 2017: (Start)
Multiplicative with a(p^n) = 2^A005187(n).
a(1) = 1; for n > 1, a(n) = A000079(A005187(A067029(n))) * a(A028234(n)).
a(n) = A000079(A046645(n)).
(End)
Sum_{j=1..n} A046643(j)/A046644(j) ~ n / sqrt(Pi*log(n)) * (1 + (1 - gamma/2)/(2*log(n))), where gamma is the Euler-Mascheroni constant A001620. - Vaclav Kotesovec, May 04 2025

A318512 Denominators (in their lowest terms) of the sequence whose Dirichlet convolution with itself yields squares (A000290), or equally A064549.

Original entry on oeis.org

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

Author

Antti Karttunen, Aug 30 2018

Keywords

Comments

These are also denominators (in their lowest terms) for the sequence whose Dirichlet convolution with itself yields A064549, n * Product_{primes p|n} p.
From Antti Karttunen, Sep 02 2018: (Start)
Proof for the above claim:
This sequence is defined as the denominator (given in the lowest terms) of rational valued function r(1) = 1, r(n) = (1/2) * (A000290(n) - Sum_{d|n, d>1, d 1. Define sequence Ay(n) as the denominator of function s(n), with otherwise similar definition, but with A064549 in place of A000290. Let Ay(n) be the denominator of s(n), reduced also into the lowest terms. (Corresponding numerators are A318649 and A318511 respectively. Note that the denominators in both cases must always be of the form 2^k, with k >= 0).
By applying the distributive property of Dirichlet Convolution [which says that for any completely multiplicative function f, it doesn't matter whether one multiplies the result of convolution afterwards, or whether one multiplies the operands separately before convolution: f(g * g) = (fg) * (fg)], with A000027 in the role of f in both cases, one obtains a pair of equations:
A318649(n) A318681(n) n*A299149(n)
---------- = ---------- = ------------
and
A318511(n) A318680(n) n*A318653(n)
---------- = ---------- = ------------
Ay(n) A299150(n) A299150(n)
where the leftmost ratios are reduced into their lowest terms.
Sequence A318656 gives the 2-adic valuation of ratio A318649(n)/A318512(n), and because there are no even terms neither in A299149 nor in A318653, it also gives the 2-adic valuation of the latter ratio. As A318511/Ay is given in the lowest terms (not both of A318511(n) and Ay(n) can be even at same n), this implies that Ay must indeed be identical to A318512, and furthermore that A318655(n) = A007814(A318649(n)) = A007814(A318511(n)).
(End)

Programs

  • Mathematica
    f[1] = 1; f[n_] := f[n] = 1/2 (n*Times @@ FactorInteger[n][[All, 1]] - Sum[f[d] f[n/d], {d, Divisors[n][[2 ;; -2]]}]); Table[Denominator[f[n]], {n, 1, 100}] (* Vaclav Kotesovec, May 10 2025 *)
  • PARI
    up_to = 65537;
    A064549(n) = { my(f=factor(n)); for (i=1, #f~, f[i, 2]++); factorback(f); };
    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&&dA064549(n)));
    A318512(n) = denominator(v318511_12[n]);
    
  • PARI
    for(n=1, 100, print1(denominator(direuler(p=2, n, 1/(1-p^2*X)^(1/2))[n]), ", ")) \\ Vaclav Kotesovec, May 09 2025

Formula

a(n) = denominator of f(n), where f(1) = 1, f(n) = (1/2) * (A000290(n) - Sum_{d|n, d>1, d 1. [Equally, one could use A064549 in place of A000290.]
a(n) = 2^A318513(n).
a(n) = A046644(n)/A318651(n).
a(2n-1) = A046644(2n-1) = A318658(2n-1), for all n >= 1.

Extensions

The main definition changed, more formulas added by Antti Karttunen, Aug 31 2018

A317932 Denominators of certain "Dirichlet Square Root" sequences: a(n) = A046644(n)/(2^A007949(n)).

Original entry on oeis.org

1, 2, 1, 8, 2, 2, 2, 16, 2, 4, 2, 8, 2, 4, 2, 128, 2, 4, 2, 16, 2, 4, 2, 16, 8, 4, 2, 16, 2, 4, 2, 256, 2, 4, 4, 16, 2, 4, 2, 32, 2, 4, 2, 16, 4, 4, 2, 128, 8, 16, 2, 16, 2, 4, 4, 32, 2, 4, 2, 16, 2, 4, 4, 1024, 4, 4, 2, 16, 2, 8, 2, 32, 2, 4, 8, 16, 4, 4, 2, 256, 8, 4, 2, 16, 4, 4, 2, 32, 2, 8, 4, 16, 2, 4, 4, 256, 2, 16, 4, 64, 2, 4, 2, 32, 4
Offset: 1

Author

Antti Karttunen, Aug 11 2018

Keywords

Comments

These are denominators for rational valued sequences that are obtained as "Dirichlet Square Roots" of sequences b that satisfy the condition b(3) = 2, and b(p) = odd number for any other primes p. For example, A064989, A065769 and A234840. - Antti Karttunen, Aug 31 2018
The original definition was: Denominators of the rational valued sequence whose Dirichlet convolution with itself yields A002487, Stern's Diatomic sequence. However, this definition depends on the conjecture given in A261179.

Crossrefs

Cf. A317930, A318319, A318669 (some of the numerator sequences), A317931 (conjectured, for A002487).
Cf. A305439 (the 2-adic valuation), A318666.

Programs

Formula

a(n) = A046644(n)/A318666(n) = 2^A305439(n).
a(n) = denominator of f(n), where f(1) = 1, f(n) = (1/2) * (b(n) - Sum_{d|n, d>1, d 1, where b can be A064989, A065769 or A234840 for example, conjecturally also A002487.
Multiplicative with a(3^e) = 2^A011371(e), a(p^e) = 2^A005187(e) for any other primes. - Antti Karttunen, Sep 03 2018

Extensions

Definition changed, the original (now conjectured alternative definition) moved to the comments section by Antti Karttunen, Aug 31 2018
Keyword:mult added by Antti Karttunen, Sep 03 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

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.
		

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

A318649 Numerators of the sequence whose Dirichlet convolution with itself yields squares, A000290.

Original entry on oeis.org

1, 2, 9, 6, 25, 9, 49, 20, 243, 25, 121, 27, 169, 49, 225, 70, 289, 243, 361, 75, 441, 121, 529, 90, 1875, 169, 3645, 147, 841, 225, 961, 252, 1089, 289, 1225, 729, 1369, 361, 1521, 250, 1681, 441, 1849, 363, 6075, 529, 2209, 315, 7203, 1875, 2601, 507, 2809, 3645, 3025, 490, 3249, 841, 3481, 675, 3721, 961, 11907, 924, 4225, 1089
Offset: 1

Author

Antti Karttunen, Aug 31 2018

Keywords

Crossrefs

Cf. A000290, A318512 (denominators).
Cf. also A046643, A299149, A318511, A318651, A318654 (gives the positions of even terms), A318655 (the 2-adic valuation).

Programs

  • PARI
    up_to = 65537;
    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&&dA318649(n) = numerator(v318649_aux[n]);
    
  • PARI
    for(n=1, 100, print1(numerator(direuler(p=2, n, 1/(1-p^2*X)^(1/2))[n]), ", ")) \\ Vaclav Kotesovec, May 09 2025

Formula

a(n) = numerator of f(n), where f(1) = 1, f(n) = (1/2) * ((n^2) - Sum_{d|n, d>1, d 1.
a(n) = n*A318512(n)*A299149(n)/A299150(n).
Sum_{k=1..n} A318649(k) / A318512(k) ~ n^3/(3*sqrt(Pi*log(n))) * (1 + (1 - 3*gamma/2) / (6*log(n))), where gamma is the Euler-Mascheroni constant A001620. - Vaclav Kotesovec, May 09 2025

A317934 Multiplicative with a(p^n) = 2^A011371(n); denominators for certain "Dirichlet Square Roots" sequences.

Original entry on oeis.org

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

Author

Antti Karttunen, Aug 12 2018

Keywords

Comments

a(n) is the denominator of certain rational valued sequences f(n), that have been defined as f(n) = (1/2) * (b(n) - Sum_{d|n, d>1, dA034444 and A037445.
Many of the same observations as given in A046644 apply also here. Note that A011371 shares with A005187 the property that A011371(x+y) <= A011371(x) + A011371(y), with equivalence attained only when A004198(x,y) = 0, and also the property that A011371(2^(k+1)) = 1 + 2*A011371(2^k).
The following list gives such pairs num(n), b(n) for which b(n) is Dirichlet convolution of num(n)/a(n).
Numerators Dirichlet convolution of numerator(n)/a(n) yields
------- -----------
Expansion of Dirichlet g.f. Product_{prime} 1/(1 - 2/p^s)^(1/2) is A046643/A317934. - Vaclav Kotesovec, May 08 2025

Crossrefs

Cf. A317933, A317940, A317941 (numerator-sequences).
Cf. also A046644, A299150, A299152, A317832, A317932, A317926 (for denominator sequences of other similar constructions).

Programs

  • PARI
    A011371(n) = (n - hammingweight(n));
    A317934(n) = factorback(apply(e -> 2^A011371(e),factor(n)[,2]));
    
  • PARI
    for(n=1, 100, print1(denominator(direuler(p=2, n, 1/(1-2*X)^(1/2))[n]), ", ")) \\ Vaclav Kotesovec, May 07 2025
    
  • PARI
    for(n=1, 100, print1(denominator(direuler(p=2, n, ((1+X)/(1-X))^(1/2))[n]), ", ")) \\ Vaclav Kotesovec, May 09 2025

Formula

a(n) = 2^A317946(n).
a(n) = denominator of f(n), where f(1) = 1, f(n) = (1/2) * (b(n) - Sum_{d|n, d>1, d 1, where b is A034444, A037445 or A046644 for example.
Sum_{k=1..n} A046643(k)/a(k) ~ n * sqrt(A167864*log(n)/(Pi*log(2))) * (1 + (4*(gamma - 1) + 5*log(2) - 4*A347195)/(8*log(n))), where gamma is the Euler-Mascheroni constant A001620. - Vaclav Kotesovec, May 08 2025

A318314 Denominators of the sequence whose Dirichlet convolution with itself yields A068068, number of odd unitary divisors of n.

Original entry on oeis.org

1, 2, 1, 8, 1, 2, 1, 16, 2, 2, 1, 8, 1, 2, 1, 128, 1, 4, 1, 8, 1, 2, 1, 16, 2, 2, 2, 8, 1, 2, 1, 256, 1, 2, 1, 16, 1, 2, 1, 16, 1, 2, 1, 8, 2, 2, 1, 128, 2, 4, 1, 8, 1, 4, 1, 16, 1, 2, 1, 8, 1, 2, 2, 1024, 1, 2, 1, 8, 1, 2, 1, 32, 1, 2, 2, 8, 1, 2, 1, 128, 8, 2, 1, 8, 1, 2, 1, 16, 1, 4, 1, 8, 1, 2, 1, 256, 1, 4, 2, 16, 1, 2, 1, 16, 1
Offset: 1

Author

Antti Karttunen and Andrew Howroyd, Aug 29 2018

Keywords

Comments

The sequence seems to give the denominators of several other similarly constructed "Dirichlet Square Roots".
Note that A318314 differs from A318454 at exactly those n where A001227 differs from A068068, the numbers in A038838. - Antti Karttunen, Sep 07 2018

Crossrefs

Programs

  • Mathematica
    a35[n_] := (1 - (-1)^n)/2;
    a120[n_] := DigitCount[n, 2, 1];
    a[n_] := Product[{p, e} = pe; 2^(((2 - a35[p])*e) - a120[e]), {pe, FactorInteger[n]}];
    a /@ Range[100] (* Jean-François Alcover, Sep 19 2019 *)
  • PARI
    up_to = 16384;
    A068068(n) = (2^omega(n>>valuation(n, 2))); \\ From A068068
    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&&dA317937.
    v318313_15 = DirSqrt(vector(up_to, n, A068068(n)));
    A318313(n) = numerator(v318313_15[n]);
    A318314(n) = denominator(v318313_15[n]);

Formula

a(n) = denominator of f(n), where f(1) = 1, f(n) = (1/2) * (A068068(n) - Sum_{d|n, d>1, d 1.
a(n) = 2^A318315(n).
From Antti Karttunen, Sep 03-07 2018: (Start, conjectured formulas)
a(n) = A006519(n) * A317934(n), thus multiplicative with a(2^e) = 2^A005187(e), a(p^e) = 2^A011371(e) for odd primes p.
Equally, multiplicative with a(p^e) = 2^(((2-A000035(p))*e)-A000120(e)) for all primes p.
(End)

A318662 Denominators of the sequence whose Dirichlet convolution with itself yields A055653, sum of phi(d) over all unitary divisors d of n.

Original entry on oeis.org

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

Author

Antti Karttunen, Sep 03 2018

Keywords

Comments

The sequence seems to give the denominators of several other similarly constructed "Dirichlet Square Roots".

Crossrefs

Cf. A055653, A318661 (numerators), A318663.

Programs

  • PARI
    up_to = 1+(2^16);
    A055653(n) = sumdiv(n, d, if(gcd(n/d, d)==1, eulerphi(d))); \\ From A055653
    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&&dA055653(n)));
    A318661(n) = numerator(v318661_62[n]);
    A318662(n) = denominator(v318661_62[n]);
    A318663(n) = valuation(A318662(n),2);
    
  • PARI
    for(n=1, 100, print1(denominator(direuler(p=2, n, ((1 + X^2 - p*X^2 - X)/((1-X)*(1-p*X)))^(1/2))[n]), ", ")) \\ Vaclav Kotesovec, May 10 2025

Formula

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

A318672 Denominators of the sequence whose Dirichlet convolution with itself yields A049599, number of (1+e)-divisors of n.

Original entry on oeis.org

1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 2, 1, 1, 1, 1, 1, 1, 1, 8, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1
Offset: 1

Author

Antti Karttunen, Sep 03 2018

Keywords

Comments

The sequence seems to give the denominators of a few other similarly constructed rational valued sequences obtained as "Dirichlet Square Roots" (possibly of A282446 and A318469).

Crossrefs

Cf. A049599, A318671 (numerators), A318673.

Programs

  • PARI
    up_to = (2^16)+1;
    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&&dA049599(n) = factorback(apply(e -> (1+numdiv(e)),factor(n)[,2]));
    v318671_62 = DirSqrt(vector(up_to, n, A049599(n)));
    A318671(n) = numerator(v318671_62[n]);
    A318672(n) = denominator(v318671_62[n]);
    A318673(n) = valuation(A318672(n),2);

Formula

a(n) = denominator of f(n), where f(1) = 1, f(n) = (1/2) * (A049599(n) - Sum_{d|n, d>1, d 1.
a(n) = 2^A318673(n).
Showing 1-10 of 21 results. Next