A086877 Primes of the form (k+1)^k - k^k.
5, 37, 4651, 1273609
Offset: 1
Keywords
Links
- Sean A. Irvine, Table of n, a(n) for n = 1..5
Programs
-
PARI
f(n) = for(x=1,n,y=(x+1)^x-x^x; if(isprime(y),print1(y, ", ")))
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.
f(n) = for(x=1,n,y=(x+1)^x-x^x; if(isprime(y),print1(y, ", ")))