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

A066678 Totients of the least numbers for which the totient is divisible by n.

Original entry on oeis.org

1, 2, 6, 4, 10, 6, 28, 8, 18, 10, 22, 12, 52, 28, 30, 16, 102, 18, 190, 20, 42, 22, 46, 24, 100, 52, 54, 28, 58, 30, 310, 32, 66, 102, 70, 36, 148, 190, 78, 40, 82, 42, 172, 44, 180, 46, 282, 48, 196, 100, 102, 52, 106, 54, 110, 56, 228, 58, 708, 60, 366, 310, 126, 64
Offset: 1

Views

Author

Labos Elemer, Dec 22 2001

Keywords

Comments

From Alonso del Arte, Feb 03 2017: (Start)
One of the less obvious consequences of Dirichlet's theorem on primes in arithmetic progression is that this sequence is well-defined for all positive integers.
Suppose n is a nontotient (see A007617). Obviously a(n) != n. Dirichlet's theorem assures us that, if nothing else, there are infinitely many primes of the form nk + 1 for k positive (and in this case, k > 1). Then phi(nk + 1) = nk, suggesting a(n) = nk corresponding to the smallest k.
Of course not all a(n) are 1 less than a prime, such as 8, 20, 24, 54, etc. (End)

Examples

			a(23) = 46 because there is no solution to phi(x) = 23 but there are solutions to phi(x) = 46, like x = 47.
a(24) = 24 because there are solutions to phi(x) = 24, such as x = 35.
		

Crossrefs

Programs

  • Mathematica
    EulerPhi[mulTotientList = ConstantArray[1, 70]; k = 1; While[Length[vac = Rest[Flatten[Position[mulTotientList, 1]]]] > 0, k++; mulTotientList[[Intersection[Divisors[EulerPhi[k]], vac]]] *= k]; mulTotientList] (* Vincenzo Librandi Feb 04 2017 *)
    a[n_] := For[k=1, True, k++, If[Divisible[t = EulerPhi[k], n], Return[t]]];
    Array[a, 64] (* Jean-François Alcover, Jul 30 2018 *)
  • PARI
    list(len) = {my(v = vector(len), c = 0, k = 1, e); while(c < len, e = eulerphi(k); fordiv(e, d, if(d <= len && v[d] == 0, v[d] = e; c++)); k++); v;} \\ Amiram Eldar, Mar 07 2025
  • Sage
    def A066678(n):
        s = 1
        while euler_phi(s) % n: s += 1
        return euler_phi(s)
    print([A066678(n) for n in (1..64)]) # Peter Luschny, Feb 05 2017
    

Formula

a(n) = A000010(A061026(n)).

A066675 a(n) = A066674(n)-1 divided by the n-th prime.

Original entry on oeis.org

1, 2, 2, 4, 2, 4, 6, 10, 2, 2, 10, 4, 2, 4, 6, 2, 12, 6, 4, 8, 4, 4, 2, 2, 4, 6, 6, 6, 10, 2, 4, 2, 6, 4, 8, 6, 10, 4, 14, 2, 2, 6, 2, 4, 18, 4, 10, 12, 24, 12, 2, 2, 6, 2, 6, 6, 8, 6, 4, 2, 6, 2, 4, 6, 6, 26, 6, 10, 6, 10, 14, 2, 6, 4, 12, 12, 24, 6, 8, 4, 2, 10, 2, 4, 10, 2, 8, 30, 6, 12, 6, 8, 4
Offset: 1

Views

Author

Labos Elemer, Dec 19 2001

Keywords

Comments

Is this a duplicate of A035096? - R. J. Mathar, Dec 15 2008

Crossrefs

Formula

a(n) = min{m : phi(m) == 0 (mod p(n))} = min{m : A000010(m) == 0 (mod A000040(n))}.

Extensions

a(2) corrected by R. J. Mathar, Dec 15 2008

A066676 Smallest number m such that phi(m) is a multiple of n-th primorial number, the product of first n primes.

Original entry on oeis.org

3, 7, 31, 211, 2311, 60653, 1023053, 19417793, 446235509, 12939711677, 200560490131, 14841484883609, 608500576478849, 26165522997357677, 1229779567395958169, 65178316970529225209, 3845520700432469775917, 234576762719782814756597, 15716643102168462956621849
Offset: 1

Views

Author

Labos Elemer, Dec 19 2001

Keywords

Examples

			n = 8: a(8) = 19417793, phi(a(8)) = 19199380 = 2*9699690 = 2*2*3*5*7*11*13*17*19.
		

Crossrefs

Programs

  • Mathematica
    nmax = 25;
    A066676 = {};
    pm = 1;
    Do[
      pm *= Prime[n];
      sol = 0;
      If[PrimeQ[pm + 1],
       sol = pm + 1;
       ,
       sd = Select[Divisors[pm/2], # <= Sqrt[pm/2] &];
       Do[
        f1 = sd[[i]];
        f2 = pm/2/f1;
        If[PrimeQ[2 f1 + 1] && PrimeQ[2 f2 + 1],
         sol = (2 f1 + 1)*(2 f2 + 1);
         Break[];
         ];
         , {i, Length[sd], 1, -1}];
       ];
      AppendTo[A066676, sol];
      Print[{n, sol}];
       , {n, nmax}];
    A066676 (* Ray Chandler, Oct 21 2011 *)

Formula

a(n) = Min{x : A000010(x) mod A002110(n) = 0}.

Extensions

a(9)-a(11) from Donovan Johnson, Oct 12 2011
a(12)-a(13) upper limits from Donovan Johnson confirmed as next terms, a(14)-a(19) added by Ray Chandler, Oct 21 2011

A067005 Totient of A061026(n) divided by n.

Original entry on oeis.org

1, 1, 2, 1, 2, 1, 4, 1, 2, 1, 2, 1, 4, 2, 2, 1, 6, 1, 10, 1, 2, 1, 2, 1, 4, 2, 2, 1, 2, 1, 10, 1, 2, 3, 2, 1, 4, 5, 2, 1, 2, 1, 4, 1, 4, 1, 6, 1, 4, 2, 2, 1, 2, 1, 2, 1, 4, 1, 12, 1, 6, 5, 2, 1, 2, 1, 4, 2, 2, 1, 8, 1, 4, 2, 2, 3, 6, 1, 4, 1, 2, 1, 2, 1, 12, 2, 4, 1, 2, 2, 6, 1, 4, 3, 2, 1, 4, 2, 2, 1
Offset: 1

Views

Author

Labos Elemer, Dec 22 2001

Keywords

Examples

			n = 24: a(24) = 1 = phi(A061026(24))/24 = phi(35)/24 = 24/24;
n = 85: a(85) = 12 = phi(A061026(85))/85 = 1020/85.
		

Crossrefs

Programs

  • Mathematica
    Table[m = 1; While[! Divisible[Set[k, EulerPhi@ m], n], m++]; k/n, {n, 100}] (* Michael De Vlieger, Mar 18 2017 *)
  • PARI
    for(n=1,100, s=1; while((e=eulerphi(s))%n>0, s++); print1(e/n ", ")); \\ Zak Seidov, Feb 22 2014
    
  • PARI
    list(len) = {my(v = vector(len), c = 0, k = 1, e); while(c < len, e = eulerphi(k); fordiv(e, d, if(d <= len && v[d] == 0, v[d] = e/d; c++)); k++); v; } \\ Amiram Eldar, Mar 08 2025
    
  • Python
    from sympy.ntheory import totient
    def k(n):
        m=1
        while totient(m)%n: m+=1
        return m
    print([totient(k(n))//n for n in range(1, 101)]) # Indranil Ghosh, Mar 18 2017

Formula

a(n) = A000010(A061026(n))/n.
a(n) = A066678(n)/n. - Amiram Eldar, Mar 08 2025

A067006 Smallest number for which the totient is divisible by the n-th nontotient number, that is, the n-th term of A007617.

Original entry on oeis.org

7, 11, 29, 19, 23, 53, 29, 31, 103, 191, 43, 47, 101, 53, 81, 59, 311, 67, 103, 71, 149, 191, 79, 83, 173, 181, 283, 197, 101, 103, 107, 121, 229, 709, 367, 311, 127, 131, 269, 137, 139, 569, 293, 149, 151, 229, 463, 317, 163, 167, 1021, 173, 349, 179, 181, 547
Offset: 1

Views

Author

Labos Elemer, Dec 22 2001

Keywords

Examples

			14 = A007617(7) is not totient of any other number, but phi(29) = 28 is divisible by 14 and 29 is the smallest number of which the totient is a multiple of 14, so a(7)=29.
		

Crossrefs

Formula

a(n) = min_{x : mod(phi(x), A007617(n)) = 0}. For all nontotient numbers x, q*x+1 is prime with large enough q and a divisor of phi(q*x+1) = q*x is x, the selected nontotient number. [Corrected by Sean A. Irvine, Nov 28 2023]
Showing 1-5 of 5 results.