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.

A276455 Primes of the form Sum_{k=1..n} k^(k-1).

Original entry on oeis.org

3, 701, 45269999
Offset: 1

Views

Author

Robert C. Lyons, Sep 06 2016

Keywords

Comments

Searched up to n = 5000.
a(4) has 38019 digits (1973212031 ... 7493445627) and corresponds to n=9553. - Robert Price, Sep 23 2016; [number of digits in a(4) corrected by Jon E. Schoenfield, Nov 06 2016]
No other primes corresponding to n < 80000. - Robert Price, Mar 17 2017

Examples

			3 is in the sequence because 3 is prime and 3 = 2^1 + 1^0.
701 is in the sequence because 701 is prime and 701 = 5^4 + 4^3 + 3^2 + 2^1 + 1^0.
45269999 is in the sequence because 45269999 is prime and 45269999 = 9^8 + 8^7 + 7^6 + 6^5 + 5^4 + 4^3 + 3^2 + 2^1 + 1^0.
		

Crossrefs

Primes in A060946.

Programs

  • Mathematica
    Select[Accumulate[Table[n^(n-1),{n,100}]],PrimeQ] (* Harvey P. Dale, Apr 13 2020 *)
  • Sage
    sum = 0
    seq = []
    max_n = 2500
    for n in range(1, max_n+1):
        sum += n^(n-1)
        if is_prime(sum):
            seq.append(n)
    print(seq)