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.

A058321 Number of x such that phi(x) = 2^n.

Original entry on oeis.org

2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32
Offset: 0

Views

Author

Labos Elemer, Dec 11 2000

Keywords

Comments

If there are only 5 Fermat primes (A019434), then a(n) = 32 for n > 31. - T. D. Noe, Jun 21 2012 [Corrected by Jeppe Stig Nielsen, Oct 02 2021.]
The first unknown term is a(8589934592) which depends on whether A000215(33) is composite or prime. - Jeppe Stig Nielsen, Oct 02 2021

Examples

			For n = 0, a(0) = 2 because phi(1) = phi(2) = 1.
For n = 5, invphi(32) gives 7 values as follows: phi({51,64,68,80,96,102,120}) = {32,32,32,32,32,32,32}.
		

Crossrefs

Programs

  • Maple
    with(numtheory):[seq(nops(invphi(2^i)),i=1..100)];
  • PARI
    a(n) = invphiNum(1 << n); \\ Amiram Eldar, Nov 15 2024 using Max Alekseyev's invphi.gp

Formula

a(n) = A014197(2^n) = A014197(A000079(n)).

Extensions

Added a(0) and corrected a(31) - T. D. Noe, Jun 21 2012
Correction of a(31) reverted; true value is a(31) = 33. - Jeppe Stig Nielsen, Oct 02 2021