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 15 results. Next

A198286 a(n) = Sum_{d|n} (A053143(d) or smallest square divisible by d).

Original entry on oeis.org

1, 5, 10, 9, 26, 50, 50, 25, 19, 130, 122, 90, 170, 250, 260, 41, 290, 95, 362, 234, 500, 610, 530, 250, 51, 850, 100, 450, 842, 1300, 962, 105, 1220, 1450, 1300, 171, 1370, 1810, 1700, 650, 1682, 2500, 1850, 1098, 494, 2650, 2210, 410, 99, 255, 2900, 1530, 2810
Offset: 1

Views

Author

Antonio Roldán, Oct 23 2011

Keywords

Comments

Multiplicative function with a(p^e) = 1+2*(p^(e+2)-p^2)/(p^2-1) if e is even else a(p^e)=(1+p^2)((p^(e+1)-1)/(p^2-1)). Examples: a(9)=a(3^2)=1+2*((81-9)/(9-1))=1+2*9=19; a(8)=a(2^3)=(1+4)((16-1)/(4-1))=5*5=25.
Another definition of a(n): Sum_{d|n} (d*core(d)), where core(d) is the squarefree part of d (A007913), i.e., inverse Mobius transform of A053143.

Examples

			a(18) = 95 because 18=2*3^2, so a(18) = (1+4)(1+9+9) = 5*19 = 95.
a(20) = 234 because 20=2^2*5, so a(20) = (1+4+4)(1+25) = 9*26 = 234.
		

Crossrefs

Similar to A068976 (sum of square part of d) and A069088 (sum of squarefree part of d).

Programs

  • Mathematica
    ssq[n_] := For[k=1, True, k++, If[ Divisible[s = k^2, n], Return[s]]]; a[n_] := Sum[ ssq[d], {d, Divisors[n]}]; Table[a[n], {n, 1, 53}] (* Jean-François Alcover, Sep 03 2012 *)
    f[p_, e_] := If[OddQ[e], (1+p^2)((p^(e+1)-1)/(p^2-1)), 1+2*(p^(e+2)-p^2)/(p^2-1)]; a[1] = 1; a[n_] := Times @@ (f @@@ FactorInteger[n]); Array[a, 53] (* Amiram Eldar, Sep 05 2020 *)
  • PARI
    a(n)=sumdiv(n,d,d*core(d)) \\ Charles R Greathouse IV, Oct 30 2011

Formula

Dirichlet g.f.: zeta(s)*zeta(s-2)*zeta(2s-2)/zeta(2s-4). - R. J. Mathar, Mar 12 2012
Sum_{k=1..n} a(k) ~ Pi^2 * Zeta(3) * n^3 / 45. - Vaclav Kotesovec, Feb 02 2019

A019554 Smallest number whose square is divisible by n.

Original entry on oeis.org

1, 2, 3, 2, 5, 6, 7, 4, 3, 10, 11, 6, 13, 14, 15, 4, 17, 6, 19, 10, 21, 22, 23, 12, 5, 26, 9, 14, 29, 30, 31, 8, 33, 34, 35, 6, 37, 38, 39, 20, 41, 42, 43, 22, 15, 46, 47, 12, 7, 10, 51, 26, 53, 18, 55, 28, 57, 58, 59, 30, 61, 62, 21, 8, 65, 66, 67, 34, 69, 70, 71, 12, 73, 74, 15, 38, 77
Offset: 1

Views

Author

R. Muller

Keywords

Comments

A note on square roots of numbers: we can write sqrt(n) = b*sqrt(c) where c is squarefree. Then b = A000188(n) is the "inner square root" of n, c = A007913(n), and b*c = A019554(n) = "outer square root" of n.
Instead of the terms "inner square root" and "outer square root", we may use the terms "lower square root" and "upper square root", respectively. Upper k-th roots have been studied by Broughan (2002, 2003, 2006). - Petros Hadjicostas, Sep 15 2019
The number of times each number k appears in this sequence is A034444(k). The first time k appears is at position A102631(k). - N. J. A. Sloane, Jul 28 2021

Crossrefs

Cf. A000188 (inner square root), A053150 (inner 3rd root), A019555 (outer 3rd root), A053164 (inner 4th root), A053166 (outer 4th root), A015052 (outer 5th root), A015053 (outer 6th root).

Programs

  • Haskell
    a019554 n = product $ zipWith (^)
                (a027748_row n) (map ((`div` 2) . (+ 1)) $ a124010_row n)
    -- Reinhard Zumkeller, Apr 13 2013
    (Python 3.8+)
    from math import prod
    from sympy import factorint
    def A019554(n): return n//prod(p**(q//2) for p, q in factorint(n).items()) # Chai Wah Wu, Aug 18 2021
  • Maple
    with(numtheory):A019554 := proc(n) local i: RETURN(op(mul(i,i=map(x->x[1]^ceil(x[2]/2),ifactors(n)[2])))); end;
  • Mathematica
    Flatten[Table[Select[Range[n],Divisible[#^2,n]&,1],{n,100}]] (* Harvey P. Dale, Oct 17 2011 *)
    f[p_, e_] := p^Ceiling[e/2]; a[1] = 1; a[n_] := Times @@ f @@@ FactorInteger[n]; Array[a, 100] (* Amiram Eldar, Sep 18 2020 *)
  • PARI
    a(n)=n/core(n,1)[2] \\ Charles R Greathouse IV, Feb 24 2011
    

Formula

Replace any square factors in n by their square roots.
Multiplicative with a(p^e) = p^ceiling(e/2).
Dirichlet series:
Sum_{n>=1} a(n)/n^s = zeta(2*s-1)*zeta(s-1)/zeta(2*s-2), (Re(s) > 2);
Sum_{n>=1} (1/a(n))/n^s = zeta(2*s+1)*zeta(s+1)/zeta(2*s+2), (Re(s) > 0).
a(n) = n/A000188(n).
a(n) = denominator of n/n^(3/2). - Arkadiusz Wesolowski, Dec 04 2011
a(n) = Product_{k=1..A001221(n)} A027748(n,k)^ceiling(A124010(n,k)/2). - Reinhard Zumkeller, Apr 13 2013
Sum_{k=1..n} a(k) ~ 3*zeta(3)*n^2 / Pi^2. - Vaclav Kotesovec, Sep 18 2020
Sum_{k=1..n} 1/a(k) ~ 3*log(n)^2/(2*Pi^2) + (9*gamma/Pi^2 - 36*zeta'(2)/Pi^4)*log(n) + 6*gamma^2/Pi^2 - 108*gamma*zeta'(2)/Pi^4 + 432*zeta'(2)^2/Pi^6 - 36*zeta''(2)/Pi^4 - 15*sg1/Pi^2, where gamma is the Euler-Mascheroni constant A001620 and sg1 is the first Stieltjes constant (see A082633). - Vaclav Kotesovec, Jul 27 2021
a(n) = sqrt(n*A007913(n)). - Jianing Song, May 08 2022
a(n) = sqrt(A053143(n)). - Amiram Eldar, Sep 02 2023
From Mia Boudreau, Jul 17 2025: (Start)
a(n^2) = n.
a(A005117(n)) = A005117(n).
a(A133466(n)) = A133466(n)/2.
a(A195085(n)) = A195085(n)/3. (End)

A356191 a(n) is the smallest exponentially odd number that is divisible by n.

Original entry on oeis.org

1, 2, 3, 8, 5, 6, 7, 8, 27, 10, 11, 24, 13, 14, 15, 32, 17, 54, 19, 40, 21, 22, 23, 24, 125, 26, 27, 56, 29, 30, 31, 32, 33, 34, 35, 216, 37, 38, 39, 40, 41, 42, 43, 88, 135, 46, 47, 96, 343, 250, 51, 104, 53, 54, 55, 56, 57, 58, 59, 120, 61, 62, 189, 128, 65
Offset: 1

Views

Author

Amiram Eldar, Jul 29 2022

Keywords

Crossrefs

Programs

  • Mathematica
    f[p_, e_] := If[OddQ[e], p^e, p^(e + 1)]; a[1] = 1; a[n_] := Times @@ f @@@ FactorInteger[n]; Array[a, 100]
  • PARI
    a(n) = {my(f=factor(n)); prod(i=1, #f~, if(f[i,2]%2, f[i,1]^f[i,2], f[i,1]^(f[i,2]+1)))};
    
  • PARI
    for(n=1, 100, print1(direuler(p=2, n, 1/(1 - p^2*X^2) * (1 + p*X + p^3*X^2 - p^2*X^2))[n], ", ")) \\ Vaclav Kotesovec, Sep 09 2023

Formula

Multiplicative with a(p^e) = p^e if e is odd and p^(e+1) otherwise.
a(n) = n iff n is in A268335.
a(n) = A064549(n)/A007913(n).
a(n) = n*A336643(n).
a(n) = n^2/A350390(n).
From Vaclav Kotesovec, Sep 09 2023: (Start)
Let f(s) = Product_{p prime} (1 - p^(6-5*s) + p^(7-5*s) + 2*p^(5-4*s) - p^(6-4*s) + p^(3-3*s) - p^(4-3*s) - 2*p^(2-2*s)).
Sum_{k=1..n} a(k) ~ Pi^2 * f(2) * n^2 / 24 * (log(n) + 3*gamma - 1/2 + 12*zeta'(2)/Pi^2 + f'(2)/f(2)), where
f(2) = Product_{p prime} (1 - 4/p^2 + 4/p^3 - 1/p^4) = A256392 = 0.2177787166195363783230075141194468131307977550013559376482764035236264911...,
f'(2) = f(2) * Sum_{p prime} (11*p - 5) * log(p) / (p^3 + p^2 - 3*p + 1) = f(1) * 4.7165968208567630786609552448708126340725121316268495170070986645608062483...
and gamma is the Euler-Mascheroni constant A001620. (End)

A356192 a(n) is the smallest cubefull exponentially odd number (A335988) that is divisible by n.

Original entry on oeis.org

1, 8, 27, 8, 125, 216, 343, 8, 27, 1000, 1331, 216, 2197, 2744, 3375, 32, 4913, 216, 6859, 1000, 9261, 10648, 12167, 216, 125, 17576, 27, 2744, 24389, 27000, 29791, 32, 35937, 39304, 42875, 216, 50653, 54872, 59319, 1000, 68921, 74088, 79507, 10648, 3375, 97336
Offset: 1

Views

Author

Amiram Eldar, Jul 29 2022

Keywords

Comments

First differs from A053149 and A356193 at n=16.

Crossrefs

Programs

  • Mathematica
    f[p_, e_] := If[OddQ[e], p^Max[e, 3], p^(e + 1)]; a[1] = 1; a[n_] := Times @@ f @@@ FactorInteger[n]; Array[a, 50]
  • PARI
    a(n) = {my(f=factor(n)); prod(i=1, #f~, if(f[i,2]%2, f[i,1]^max(f[i,2],3), f[i,1]^(f[i,2]+1)))};

Formula

Multiplicative with a(p^e) = p^max(e,3) if e is odd and p^(e+1) otherwise.
a(n) = n iff n is in A335988.
a(n) = A356191(n) iff n is a powerful number (A001694).
Sum_{n>=1} 1/a(n) = Product_{p prime} (1 + (3*p^2-1)/(p^3*(p^2-1))) = 1.69824776889117043774... .
Sum_{k=1..n} a(k) ~ c * n^4, where c = (zeta(6)/4) * Product_{p prime} (1 - 1/p^2 + 1/p^5 - 2/p^6 + 1/p^8 + 1/p^9 - 1/p^10) = 0.1559368144... . - Amiram Eldar, Nov 13 2022

A356193 a(n) is the smallest cubefull number (A036966) that is a multiple of n.

Original entry on oeis.org

1, 8, 27, 8, 125, 216, 343, 8, 27, 1000, 1331, 216, 2197, 2744, 3375, 16, 4913, 216, 6859, 1000, 9261, 10648, 12167, 216, 125, 17576, 27, 2744, 24389, 27000, 29791, 32, 35937, 39304, 42875, 216, 50653, 54872, 59319, 1000, 68921, 74088, 79507, 10648, 3375, 97336
Offset: 1

Views

Author

Amiram Eldar, Jul 29 2022

Keywords

Comments

First differs from A053149 and A356192 at n=16.

Crossrefs

Programs

  • Mathematica
    f[p_, e_] := p^Max[e, 3]; a[n_] := Times @@ f @@@ FactorInteger[n]; Array[a, 50]
  • PARI
    a(n) = {my(f=factor(n)); prod(i=1, #f~, f[i,1]^max(f[i,2],3))};

Formula

Multiplicative with a(p^e) = p^max(e,3).
a(n) = n iff n is in A036966.
Sum_{n>=1} 1/a(n) = Product_{p prime} (1 + (3*p-2)/(p^3*(p-1))) = 1.76434793373691907811... . - Amiram Eldar, Jul 29 2022
Sum_{k=1..n} a(k) ~ c * n^4, where c = (zeta(3)/4) * Product_{p prime} (1 - 1/p^2 - 1/p^3 + 2/p^5 - 1/p^6 - 1/p^8 + 2/p^9 - 1/p^10) = 0.1559111567... . - Amiram Eldar, Nov 13 2022
a(n) = n * A360541(n). - Amiram Eldar, Sep 01 2023

A356194 a(n) is the smallest multiple of n whose prime factorization exponents are all powers of 2.

Original entry on oeis.org

1, 2, 3, 4, 5, 6, 7, 16, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 48, 25, 26, 81, 28, 29, 30, 31, 256, 33, 34, 35, 36, 37, 38, 39, 80, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 162, 55, 112, 57, 58, 59, 60, 61, 62, 63, 256, 65, 66, 67
Offset: 1

Views

Author

Amiram Eldar, Jul 29 2022

Keywords

Crossrefs

Programs

  • Mathematica
    f[p_, e_] := p^(2^Ceiling[Log2[e]]); a[1] = 1; a[n_] := Times @@ f @@@ FactorInteger[n]; Array[a, 100]
  • PARI
    s(n) = {my(e=logint(n,2)); if(n == 2^e, n, 2^(e+1))};
    a(n) = {my(f=factor(n)); prod(i=1, #f~, f[i,1]^s(f[i,2]))};

Formula

Multiplicative with a(p^e) = p^(2^ceiling(log_2(e))).
a(n) = n iff n is in A138302.

A365346 The sum of divisors of the smallest square divisible by n.

Original entry on oeis.org

1, 7, 13, 7, 31, 91, 57, 31, 13, 217, 133, 91, 183, 399, 403, 31, 307, 91, 381, 217, 741, 931, 553, 403, 31, 1281, 121, 399, 871, 2821, 993, 127, 1729, 2149, 1767, 91, 1407, 2667, 2379, 961, 1723, 5187, 1893, 931, 403, 3871, 2257, 403, 57, 217, 3991, 1281, 2863
Offset: 1

Views

Author

Amiram Eldar, Sep 02 2023

Keywords

Comments

The number of these divisors is A365345(n).
The sum of divisors of the square root of the smallest square divisible by n is A365347(n).

Crossrefs

Programs

  • Mathematica
    f[p_, e_] := (p^(e + 1 + Mod[e, 2]) - 1)/(p - 1); a[1] = 1; a[n_] := Times @@ f @@@ FactorInteger[n]; Array[a, 100]
  • PARI
    a(n) = {my(f = factor(n)); prod(i = 1, #f~, (f[i,1]^(f[i,2] + 1 + f[i,2]%2) - 1)/(f[i,1] - 1));}
    
  • PARI
    a(n) = sigma(n*core(n)); \\ Michel Marcus, Sep 02 2023

Formula

a(n) = A000203(A053143(n)).
Multiplicative with a(p^e) = (p^(e + 1 + (e mod 2)) - 1)/(p - 1).
Dirichlet g.f.: zeta(s) * zeta(2*s-2) * Product_{p prime} (1 + 1/p^(s-2) + 1/p^(s-1) - 1/p^(2*s-2)).
Sum_{k=1..n} a(k) ~ c * n^3, where c = (Pi^2/45) * zeta(3) * Product_{p prime} (1 + 1/p^2 - 1/p^3) = 0.344306233314... .

A367406 The exponentially odd numbers (A268335) multiplied by their squarefree kernels (A007947).

Original entry on oeis.org

1, 4, 9, 25, 36, 49, 16, 100, 121, 169, 196, 225, 289, 361, 441, 484, 529, 144, 676, 81, 841, 900, 961, 64, 1089, 1156, 1225, 1369, 1444, 1521, 400, 1681, 1764, 1849, 2116, 2209, 2601, 2809, 324, 3025, 784, 3249, 3364, 3481, 3721, 3844, 4225, 4356, 4489, 4761
Offset: 1

Views

Author

Amiram Eldar, Nov 17 2023

Keywords

Comments

Analogous to A355038, with the exponentially odd numbers instead of the square numbers (A000290).
This sequence is a permutation of the square numbers.

Crossrefs

Programs

  • Mathematica
    s[n_] := n * Times @@ FactorInteger[n][[;;, 1]]; s /@ Select[Range[100], AllTrue[FactorInteger[#][[;; , 2]], OddQ] &]
  • PARI
    b(n) = {my(f = factor(n)); prod(i = 1, #f~, if(f[i,2]%2, f[i,1]^(f[i,2]+1), 0));}
    lista(kmax) = {my(b1); for(k = 1, kmax, b1 = b(k); if(b1 > 0, print1(b1, ", ")));}

Formula

a(n) = A064549(A268335(n)).
a(n) = A268335(n)*A367417(n).
a(n) = A367407(n)^2.
a(n) = A268335(n)^2/A367418(n).
Sum_{k=1..n} a(k) = c * n^3 / 3, where c = (Pi^2/(15*d^3)) * Product_{p prime} (1 - 1/(p^3*(p+1))) = 1.78385074227198915372..., and d = A065463 is the asymptotic density of the exponentially odd numbers.
a(n) = A053143(A268335(n)). - Amiram Eldar, Nov 30 2023

A065886 Smallest square divisible by n!.

Original entry on oeis.org

1, 1, 4, 36, 144, 3600, 3600, 176400, 2822400, 25401600, 25401600, 3073593600, 110649369600, 18699743462400, 74798973849600, 1869974346240000, 29919589539840000, 8646761377013760000, 77820852393123840000, 28093327713917706240000, 112373310855670824960000
Offset: 0

Views

Author

Henry Bottomley, Nov 27 2001

Keywords

Examples

			a(10) = 25401600 since 10! = 3628800 and the smallest square divisible by this is 25401600 = 3628800*7 = 5040^2
		

Programs

  • Maple
    N:= 50: # to get a(0)..a(N)
    P:= select(isprime, [$2..N]):
    nP:= nops(P):
    V:= Vector(nP):
    A[0]:= 1:
    for n from 1 to N do
      for i from 1 to nP do V[i]:= V[i] + padic:-ordp(n,P[i]) od;
      A[n]:= mul(P[i]^(2*ceil(V[i]/2)),i=1..nP)
    od:
    seq(A[n],n=0..N); # Robert Israel, Jan 30 2017
  • Mathematica
    ssd[n_]:=Module[{nf=n!,k=1},While[!IntegerQ[Sqrt[k*nf]],k++];k*nf]; Array[ssd,20,0] (* Harvey P. Dale, Apr 29 2012 *)

Formula

a(n) = A053143(A000142(n)) = A065887(n)^2 = A000142(n)*A055204(n) = A001044(n)/A055071(n)

A327171 a(n) = phi(n) * core(n), where phi is Euler totient function, and core gives the squarefree part of n.

Original entry on oeis.org

1, 2, 6, 2, 20, 12, 42, 8, 6, 40, 110, 12, 156, 84, 120, 8, 272, 12, 342, 40, 252, 220, 506, 48, 20, 312, 54, 84, 812, 240, 930, 32, 660, 544, 840, 12, 1332, 684, 936, 160, 1640, 504, 1806, 220, 120, 1012, 2162, 48, 42, 40, 1632, 312, 2756, 108, 2200, 336, 2052, 1624, 3422, 240, 3660, 1860, 252, 32, 3120, 1320
Offset: 1

Views

Author

Antti Karttunen, Sep 28 2019

Keywords

References

  • Steven R. Finch, Mathematical Constants II, Encyclopedia of Mathematics and Its Applications, Cambridge University Press, Cambridge, 2018, p. 161.

Crossrefs

Cf. A082473 (gives the terms in ascending order, with duplicates removed).
Cf. also A002618, A062355.

Programs

  • Magma
    [EulerPhi(n)*Squarefree(n): n in [1..100]]; // G. C. Greubel, Jul 13 2024
    
  • Mathematica
    Array[EulerPhi[#] (Sqrt@ # /. (c_: 1) a_^(b_: 0) :> (c a^b)^2) &, 66] (* Michael De Vlieger, Sep 29 2019, after Bill Gosper at A007913 *)
  • PARI
    A327171(n) = eulerphi(n)*core(n);
    
  • PARI
    A327171(n) = { my(f=factor(n)); prod (i=1, #f~, (f[i, 1]-1)*(f[i, 1]^(-1 + f[i, 2] + (f[i, 2]%2)))); };
    
  • Python
    from sympy.ntheory.factor_ import totient, core
    def A327171(n):
        return totient(n)*core(n) # Chai Wah Wu, Sep 29 2019
    
  • SageMath
    [euler_phi(n)*squarefree_part(n) for n in range(1,101)] # G. C. Greubel, Jul 13 2024

Formula

a(n) = A000010(n) * A007913(n).
Multiplicative with a(p^k) = (p-1) * p^((k-1)+(k mod 2)).
Sum_{n>=1} 1/a(n) = (Pi^2/6) * Product_{p prime} (1 + (p+1)/(p^2*(p-1))) = 3.96555686901754604330... - Amiram Eldar, Oct 16 2020
Sum_{k=1..n} a(k) ~ c * n^3, where c = (Pi^2/45) * Product_{p prime} (1 - 1/p^2 + 1/p^3 - 1/p^4) = 0.1500809164... . - Amiram Eldar, Dec 05 2022
a(n) = A000010(A053143(n)). - Amiram Eldar, Sep 15 2023
Showing 1-10 of 15 results. Next