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.

A163109 a(n) = phi(tau(n)).

Original entry on oeis.org

1, 1, 1, 2, 1, 2, 1, 2, 2, 2, 1, 2, 1, 2, 2, 4, 1, 2, 1, 2, 2, 2, 1, 4, 2, 2, 2, 2, 1, 4, 1, 2, 2, 2, 2, 6, 1, 2, 2, 4, 1, 4, 1, 2, 2, 2, 1, 4, 2, 2, 2, 2, 1, 4, 2, 4, 2, 2, 1, 4, 1, 2, 2, 6, 2, 4, 1, 2, 2, 4, 1, 4, 1, 2, 2, 2, 2, 4, 1, 4, 4, 2, 1, 4, 2, 2, 2, 4, 1, 4, 2, 2, 2, 2, 2, 4, 1, 2, 2, 6, 1, 4, 1, 4, 4
Offset: 1

Views

Author

Jaroslav Krizek, Jul 20 2009

Keywords

Examples

			a(16) = a(2^(5-1)) = 5-1 = 4.
		

Crossrefs

Programs

  • Mathematica
    Table[EulerPhi[DivisorSigma[0, n]], {n, 1, 80}] (* Carl Najafi, Aug 15 2011 *)
  • PARI
    a(n) = eulerphi(numdiv(n)); \\ Michel Marcus, Aug 22 2015

Formula

a(n) = A000010(A000005(n)). - Charles R Greathouse IV, Aug 11 2009
a(1) = 1, a(p) = 1 for p = primes (A000040), a(p*q) = 2 for p*q = product of two distinct primes (A006881), a(p*q*...*z) = 2^(k-1) for p*q*...*z = product of k (k > 2) distinct primes p, q, ..., z (A120944), a(p^(q-1)) = q - 1 for p, q = primes (A000040).

Extensions

More terms from Carl Najafi, Aug 15 2011
Further extended by Antti Karttunen, Jul 23 2017