login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A134775 Numbers k such that the sum of first k Catalan numbers is a prime. 1
2, 9, 11, 31, 46, 146, 795, 2773, 2788, 9797 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
COMMENTS
Corresponding primes are listed in A134776. A134776(n) = A014138(a(n)-1).
LINKS
Eric Weisstein's World of Mathematics, Catalan Number
EXAMPLE
a(1) = 2 because C(1) + C(2) = 1 + 2 = 3 is a prime.
a(2) = 9 because C(1) + C(2) + C(3) + C(4) + C(5) + C(6) + C(7) + C(8) + C(9) = 1 + 2 + 5 + 14 + 42 + 132 + 429 + 1430 + 4862 = 6917 is a prime.
MAPLE
for n to 3000 do c[n]:= binomial(2*n, n)/(n+1) end do: a:=proc(n) if isprime(add(c[j], j=1..n))=true then n else end if end proc: seq(a(n), n=1..3000); # Emeric Deutsch, Nov 19 2007
MATHEMATICA
f=0; Do[ f = f + Binomial[ 2n, n ]/(n+1); If[ PrimeQ[f], Print[ {n, f} ] ], {n, 1, 1000} ]
Flatten[Position[Accumulate[CatalanNumber[Range[1000]]], _?PrimeQ]] (* Harvey P. Dale, Jan 28 2013 *)
CROSSREFS
Cf. A134776 (primes that are the sum of first n Catalan numbers).
Cf. A014138 (partial sums of Catalan numbers).
Cf. A000108 (Catalan numbers).
Sequence in context: A065596 A280418 A042053 * A042573 A041651 A042687
KEYWORD
hard,more,nonn
AUTHOR
Alexander Adamchuk, Nov 11 2007
EXTENSIONS
2 more terms from Emeric Deutsch, Nov 19 2007
9797 from Ryan Propper, Jan 06 2008
STATUS
approved

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

License Agreements, Terms of Use, Privacy Policy. .

Last modified September 14 13:32 EDT 2024. Contains 375921 sequences. (Running on oeis4.)