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.

A193687 Numbers n such that the sum of n-th average of a twin prime pair and the n-th twin prime is also a twin prime.

Original entry on oeis.org

1, 2, 3, 4, 5, 6, 8, 10, 11, 13, 15, 22, 24, 32, 35, 36, 43, 44, 53, 55, 59, 67, 68, 70, 71, 73, 78, 82, 86, 108, 109, 113, 129, 132, 147, 151, 152, 154, 155, 159, 164, 165, 166, 168, 172, 173, 181, 193, 206, 211, 229, 231, 241, 260, 262, 271, 272, 277, 286
Offset: 1

Views

Author

Juri-Stepan Gerasimov, Dec 18 2011

Keywords

Examples

			a(8)=10 because 108+41=149 where 149 is a twin primes and A014574(10)=108, A001097(10)=41.
		

Crossrefs

Programs

  • Maple
    isA001097 := proc(n)
        if isprime(n) then
            if isprime(n+2) or isprime(n-2) then
                true;
            else
                false;
            end if;
        else
            false;
        end if;
    end proc:
    # see A001097 and A014574 for the other pieces of the Maple program
    for n from 1 to 300 do
        if isA001097(A001097(n)+A014574(n)) then
            printf("%d,",n);
        end if;
    end do: # R. J. Mathar, Feb 19 2015

Extensions

Corrected by R. J. Mathar, Feb 19 2015