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.

A192242 Positions of primes within Dana Scott's sequence (A048736).

Original entry on oeis.org

4, 5, 6, 7, 9, 11, 14, 19, 25, 27, 38, 208, 289, 433, 529, 1069, 1163, 1801, 5185, 5630, 8148, 9731, 11124, 23787, 46056, 64182, 82629, 92124, 97221
Offset: 1

Views

Author

Reinhard Zumkeller, Jul 01 2011

Keywords

Comments

A048736(a(n)) = A192241(n).
Larger entries are probable primes (BPSW plus random-base M-R). Values below a(n)=8148 have been proven prime. - Dana Jacobsen, Apr 30 2015

Programs

  • Perl
    use ntheory ":all";
    use Math::GMPz;
    my @a = map { Math::GMPz->new($_) } (1,1,1,1); for (1..100000) {  push @a, ($a[-2]+$a[-1]*$a[-3])/$a[-4];  say ++$i," $#a" if is_prime($a[-1]); }
    # Dana Jacobsen, Apr 30 2015

Extensions

More terms from Dana Jacobsen, Apr 30 2015