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.

A129736 Primes of the form 4^k - 3^k.

Original entry on oeis.org

7, 37, 14197, 17050729021, 332306984815842876487217260305275077
Offset: 1

Views

Author

N. J. A. Sloane, May 13 2007

Keywords

Crossrefs

Programs

  • GAP
    Filtered(List([1..100], n -> 4^n-3^n), IsPrime); # Muniru A Asiru, Feb 09 2018
    
  • Magma
    [a: n in [0..300] | IsPrime(a) where a is 4^n-3^n]; // Vincenzo Librandi, Nov 23 2010
    
  • Maple
    select(isprime, [seq(4^n - 3^n, n=0..100)]); # Muniru A Asiru, Feb 09 2018
  • Mathematica
    fQ[n_] := If[PrimeQ[4^n - 3^n], 4^n - 3^n, Nothing]; Array[fQ, 300] (* Robert G. Wilson v, Feb 12 2018 *)
  • PARI
    lista(nn) = for(k=1, nn, if(isprime(p=4^k-3^k), print1(p", "))) \\ Altug Alkan, Mar 03 2018

Formula

a(n) = A005061(A059801(n)). - Michel Marcus, Feb 12 2018