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.

A058064 Find least k such that (n+1)^k + n^k is a prime (A057856); then k=2^m and sequence gives values of m.

Original entry on oeis.org

0, 0, 0, 1, 0, 0, 1, 0, 0, 5, 0, 1, 2, 0, 0, 2, 1, 0, 1, 0, 0, 1, 0, 1, 1, 0, 2
Offset: 1

Views

Author

Robert G. Wilson v, Nov 14 2000

Keywords

Crossrefs

Programs

  • Mathematica
    Table[ k = 0; While[ !PrimeQ[ (n + 1)^(2^k) + n^(2^k) ], k++ ]; k, {n, 1, 27} ]

Formula

a(n) = A007814(A057856(n)). - Michel Marcus, Aug 05 2025