login
The OEIS Foundation is supported by donations from users of the OEIS and by a grant from the Simons Foundation.

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A292698 Number of solutions to 3 +- 7 +- 13 +- 19 +- ... +- prime(4*n) = 0. 3
0, 0, 0, 1, 2, 8, 27, 83, 292, 944, 3279, 11291, 38992, 138066, 490248, 1757360, 6347321, 22998089, 83780199, 306819363, 1128999790, 4174251748, 15507225620, 57767819903, 215327188611, 803901214851, 3013081897103, 11331883386143, 42737620941612 (list; graph; refs; listen; history; text; internal format)
OFFSET

1,5

LINKS

Seiichi Manyama, Table of n, a(n) for n = 1..200

FORMULA

Constant term in the expansion of 1/2 * Product_{k=1..2*n} (x^prime(2*k) + 1/x^prime(2*k)).

EXAMPLE

For n = 4 the solution is 3 - 7 - 13 + 19 - 29 + 37 + 43 - 53 = 0.

MAPLE

s:= proc(n) s(n):= `if`(n=0, 0, ithprime(2*n)+s(n-1)) end:

b:= proc(n, i) option remember; `if`(n>s(i), 0, `if`(i=0, 1,

      (p-> b(n+p, i-1)+b(abs(n-p), i-1))(ithprime(2*i))))

    end:

a:= n-> b(0, 2*n)/2:

seq(a(n), n=1..30);  # Alois P. Heinz, Sep 21 2017

PROG

(PARI) {a(n) = 1/2*polcoeff(prod(k=1, 2*n, x^prime(2*k)+1/x^prime(2*k)), 0)}

CROSSREFS

Cf. A000040, A022894, A083309, A292699, A292700.

Sequence in context: A290056 A100505 A102759 * A261056 A295135 A076884

Adjacent sequences:  A292695 A292696 A292697 * A292699 A292700 A292701

KEYWORD

nonn

AUTHOR

Seiichi Manyama, Sep 21 2017

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 November 27 16:35 EST 2021. Contains 349394 sequences. (Running on oeis4.)