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.

A201739 Numbers n such that 90*n + 29 is prime.

Original entry on oeis.org

0, 4, 5, 6, 7, 9, 10, 11, 12, 14, 17, 23, 27, 28, 30, 31, 32, 33, 34, 37, 38, 39, 41, 44, 45, 47, 48, 53, 54, 61, 65, 70, 73, 74, 75, 76, 77, 80, 83, 84, 88, 89, 91, 96, 98, 100, 102, 105, 108, 109, 110, 114, 117, 119, 125, 126, 128, 132, 136, 139, 142, 143
Offset: 1

Views

Author

J. W. Helkenberg, Dec 04 2011

Keywords

Comments

This sequence was generated by adding 12 Fibonacci-like sequences. Looking at the format 90n+29 modulo 9 and modulo 10 we see that all entries of A142327 have digital root 2 and last digit 9. (Reverting the process is an application of the Chinese remainder theorem.)

Crossrefs

Programs

  • Magma
    [n: n in [0..200] | IsPrime(90*n+29)]; // Vincenzo Librandi, Dec 11 2011
  • Maple
    for n from 0 to 240 do
        p := 90*n+29 ;
        if isprime(p) then
            printf("%d,",n) ;
        end if;
    end do: # R. J. Mathar, Dec 05 2011
  • Mathematica
    Select[Range[0,400],PrimeQ[90 #+29]&] (* Vincenzo Librandi, Dec 11 2011 *)
  • PARI
    forstep(n=29,1e4,90,if(isprime(n),print1(n\90", "))) \\ Charles R Greathouse IV, Dec 05 2011
    

Formula

a(n) = (A142327(n) - 29)/90.