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.

A268062 a(n) = Sum_{k=1..n} prime(k+1)^prime(k).

Original entry on oeis.org

9, 134, 16941, 19504112, 1792179898149, 9906370212804086, 5480396764155014990025, 74620951324354865576898512, 4316720792370367095095683949638501, 17761887757410618772194137156551786713472772, 4113915065494528452775640793448453170290434881585
Offset: 1

Views

Author

Emre APARI, Jan 25 2016

Keywords

Comments

Partial sums of A078422. - Michel Marcus, Jan 26 2016

Examples

			a(3) = 3^2+5^3+7^5 = 16941.
		

Crossrefs

Programs

  • Magma
    [&+[NthPrime(k+1)^NthPrime(k): k in [1..n]]: n in [1..12]]; // Vincenzo Librandi, Jan 26 2016
    
  • Mathematica
    Table[Sum[Prime[k+1]^Prime[k], {k, 1, n}], {n, 1, 12}] (* Vaclav Kotesovec, Jan 25 2016 *)
  • PARI
    a(n) = sum(k=1, n, prime(k+1)^prime(k)); \\ Michel Marcus, Jan 26 2016
  • Sage
    [sum(nth_prime(i+1)^nth_prime(i) for i in [1..n]) for n in [1..15]] # Tom Edgar, Jan 25 2016