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.

Showing 1-4 of 4 results.

A224451 Primes of the form 4^n - n.

Original entry on oeis.org

3, 61, 1019, 1180591620717411303389, 1569275433846670190958947355801916604025588861116008628129
Offset: 1

Views

Author

Alex Ratushnyak, Apr 06 2013

Keywords

Comments

Corresponding n are given in A057908.
The next term has 797 digits. - Harvey P. Dale, Mar 16 2015

Crossrefs

Cf. A057908 (n such that 4^n - n is prime).

Programs

  • Mathematica
    Select[Table[4^n-n,{n,200}],PrimeQ] (* Harvey P. Dale, Mar 16 2015 *)

A224470 Numbers k such that 7^k - k is prime.

Original entry on oeis.org

2, 6, 8, 12, 44, 48, 512, 1088, 1104, 6038
Offset: 1

Views

Author

Alex Ratushnyak, Apr 06 2013

Keywords

Comments

a(11) > 92000. - Giovanni Resta, Apr 08 2013
a(11) > 2*10^5. - Robert Price, Feb 11 2014

Crossrefs

Programs

  • PARI
    forstep(n=2,10^4,2,if(ispseudoprime(7^n-n),print1(n,", "))); /* Joerg Arndt, Apr 07 2013 */

A224471 Numbers k such that 8^k - k is prime.

Original entry on oeis.org

1, 3, 37, 45, 597, 1131, 14203, 112539
Offset: 1

Views

Author

Alex Ratushnyak, Apr 06 2013

Keywords

Comments

a(8) > 41000. - Giovanni Resta, Apr 07 2013
a(9) > 2*10^5. - Robert Price, Jan 19 2014

Crossrefs

Programs

  • Java
    import java.math.BigInteger;
    public class A224471 {
      public static void main (String[] args) {
        BigInteger b8 = BigInteger.valueOf(8);
        BigInteger m = BigInteger.valueOf(64);
        for(long n=1; ; n+=2) {
            BigInteger b = b8.subtract(BigInteger.valueOf(n));
            if (b.isProbablePrime(2)) {
                if (b.isProbablePrime(80))
                    System.out.printf("%d\n", n);
            }
            b8 = b8.multiply(m);
        }
      }
    }
    
  • PARI
    forstep(n=1,10^4,2,if(ispseudoprime(8^n-n),print1(n,", "))); /* Joerg Arndt, Apr 07 2013 */

Extensions

a(7) from Giovanni Resta, Apr 07 2013
a(8) from Robert Price, Jan 19 2014

A224506 Numbers k such that 9^k - k is prime.

Original entry on oeis.org

2, 70, 88, 6562, 9100, 11758, 34334, 39212, 120590
Offset: 1

Views

Author

Alex Ratushnyak, Apr 08 2013

Keywords

Comments

a(7) > 20000. - Giovanni Resta, Apr 09 2013
a(10) > 2*10^5. - Robert Price, Mar 12 2014

Crossrefs

Programs

Extensions

a(6) from Giovanni Resta, Apr 09 2013
a(7)-a(9) from Robert Price, Mar 12 2014
Showing 1-4 of 4 results.