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.

A070327 Smallest nontrivial power of n starting with n and greater than n.

Original entry on oeis.org

256, 387420489, 4096, 59604644775390625, 60466176, 79792266297612001, 8589934592, 984770902183611232881, 100, 1191817653772720942460132761, 1283918464548864, 137858491849, 1475789056
Offset: 2

Views

Author

Amarnath Murthy, May 11 2002

Keywords

Comments

a(n) = n ^ A051248(n). - Reinhard Zumkeller, Sep 29 2011

Crossrefs

Programs

  • Python
    from itertools import count
    def a(n):
        s = str(n)
        return next(n**e for e in count(2) if str(n**e).startswith(s))
    print([a(n) for n in range(2, 16)]) # Michael S. Branicky, Feb 23 2025

Formula

f[n_] := Block[{k = 2, s = ToString[n]}, While[ StringPosition[ ToString[n^k], s, 1] != {{1, Integer_}}, k++ ]; n^k]; Table[ f[n], {n, 2, 10}]

Extensions

Edited by Robert G. Wilson v, May 14 2002
The 15th term is too large to include.