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

A082473 Numbers n such that n = phi(x)*core(x) for some x <= n, where phi(x) is the Euler totient function and core(x) the squarefree part of x.

Original entry on oeis.org

1, 2, 6, 8, 12, 20, 32, 40, 42, 48, 54, 84, 108, 110, 120, 128, 156, 160, 192, 220, 240, 252, 272, 312, 336, 342, 432, 486, 500, 504, 506, 512, 544, 640, 660, 684, 768, 812, 840, 880, 930, 936, 960, 972, 1000, 1012, 1080, 1248, 1320, 1332, 1344, 1624, 1632
Offset: 1

Views

Author

Benoit Cloitre, Apr 27 2003

Keywords

Comments

Also numbers n such that n = y*phi(y) for a unique positive integer y (see A194507). - Franz Vrabec, Aug 27 2011
Sequence A002618 sorted into ascending order; also A327171 sorted into ascending order, with duplicate terms removed. Indices of nonzero terms in A327170 and in A327172. - Antti Karttunen, Sep 29 2019

References

  • József Sándor and Borislav Crstici, Handbook of Number theory II, Kluwer Academic Publishers, 2004, Chapter 3, p. 224.

Crossrefs

Programs

  • Mathematica
    With[{nn = 1700}, TakeWhile[Union@ Array[EulerPhi[#] (Sqrt@ # /. (c_: 1) a_^(b_: 0) :> (c a^b)^2) &, nn], # <= nn &]] (* Michael De Vlieger, Sep 29 2019, after Bill Gosper at A007913 *)
  • PARI
    isok(n) = {for (x=1, n, if (eulerphi(x)*core(x) == n, return (1));); return (0);} \\ Michel Marcus, Dec 04 2013

Formula

From Antti Karttunen, Sep 29 2019: (Start)
a(n) = A002618(A194507(n)).
A327172(a(n)) = A194507(n).
(End)
The number of terms not exceeding x is ~ c * sqrt(x), where c = Product_{p prime} (1 + 1/sqrt(p*(p-1)) - 1/p) = 1.3651304521... (Janous, 1988). - Amiram Eldar, Mar 10 2021

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