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.

A214496 Smallest k>0 such that (3^n+k)*3^n-1 and (3^n+k)*3^n+1 are a twin prime pair.

Original entry on oeis.org

1, 3, 3, 7, 21, 29, 113, 31, 61, 13, 179, 237, 33, 201, 613, 171, 347, 291, 907, 437, 523, 193, 1039, 729, 567, 231, 1847, 931, 1023, 821, 329, 3937, 6137, 319, 1663, 667, 1837, 529, 1769, 1959, 1781, 743, 3223, 591, 613, 473, 5679, 2137, 567, 459, 4729
Offset: 1

Views

Author

Pierre CAMI, Jul 20 2012

Keywords

Comments

Conjecture : there is always one such k for each n>0.
Heuristically, as N increases, the average of a(n)/n^2 for n=1 to N tends to 1.2

Crossrefs

Cf. A214495.

Programs

  • Maple
    A214496 := proc(n)
        local k;
        for k from 1 do
            p := (3^n+k)*3^n-1 ;
            if isprime(p) and isprime(p+2) then
                return k;
            end if;
        end do:
    end proc: # R. J. Mathar, Jul 23 2012