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.

A070813 Fermat primes minus 3.

Original entry on oeis.org

0, 2, 14, 254, 65534
Offset: 1

Views

Author

Labos Elemer, May 09 2002

Keywords

Comments

Even numbers 2m such that phi(gpf(x)) - gpf(phi(x)) = 2m for some x, where gpf(m) is the largest prime divisor of m and phi(m) = totient(m).
Solutions to A070812(x) = 0 are in A007283, for A070812(x) = 2 are in A070004.

Crossrefs

Programs

  • Mathematica
    pf[x_] := Part[Reverse[Flatten[FactorInteger[x]]], 2];
    allS = Reap[Do[s=EulerPhi[pf[n]]-pf[EulerPhi[n]]; If[ !OddQ[s]&&Greater[s, 2], Sow[s]], {n, 3, 10^5}]][[-1, 1]]; (* Only 14, 254 and 65534 appear in printout of s. *)
    Union[{0, 2}, allS]
  • PARI
    for(n=0,4,if(ispseudoprime(t=2^(2^n)+1),print1(t-3", "))) \\ Charles R Greathouse IV, Apr 26 2012

Formula

a(n) = A019434(n) - 3. [corrected by Jason Yuen, Jun 22 2025]