login
This site is supported by donations to The OEIS Foundation.

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A187797 Numbers having at least two different ordered partitions p+q and (p+2)+(q-2) where p, q, p+2 and q-2 are all prime. 0
10, 16, 18, 22, 24, 30, 34, 36, 42, 46, 48, 54, 60, 64, 66, 72, 76, 78, 84, 90, 102, 106, 108, 112, 114, 120, 126, 132, 138, 142, 144, 150, 154, 156, 162, 168, 174, 180, 184, 186, 192, 196, 198, 202, 204, 210, 216, 222, 228, 232, 234, 240, 244, 246, 252, 258, 264, 270, 274, 276, 282, 286 (list; graph; refs; listen; history; text; internal format)
OFFSET

1,1

LINKS

Table of n, a(n) for n=1..62.

EXAMPLE

For n=10, the partition solutions are 3+7 and 5+5, giving p=3, q=7, p+2=5, q-2=5.

MAPLE

isA187797 := proc(n)

    local i, p, q ;

    for i from 1 do

        p := ithprime(i) ;

        q := n-p ;

        if q <= p+2 then

            return false;

        end if;

        if isprime(q) then

            if isprime(p+2) and isprime(q-2) then

                return true;

            end if;

        end if;

    end do:

    return false;

end proc:

for n from 4 to 600 do

    if isA187797(n) then

        printf("%d, ", n);

    end if;

end do: # R. J. Mathar, Oct 03 2013

CROSSREFS

Sequence in context: A104868 A103208 A323196 * A192221 A106695 A053747

Adjacent sequences:  A187794 A187795 A187796 * A187798 A187799 A187800

KEYWORD

nonn

AUTHOR

Bob Gilson, Aug 30 2013

STATUS

approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recent
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified May 24 14:49 EDT 2019. Contains 323532 sequences. (Running on oeis4.)