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.

Showing 1-2 of 2 results.

A126807 Numbers k such that A014138(k+1) (the partial sum of the first k Catalan numbers, starting 1, 2, 5, ...) is a prime.

Original entry on oeis.org

1, 8, 10, 30, 45, 145, 794, 2772, 2787, 9796, 38288, 39191, 40856, 41202, 47379
Offset: 1

Views

Author

Alexander Adamchuk, Feb 23 2007

Keywords

Comments

a(16) > 156000. - Michael S. Branicky, Jun 26 2025

Crossrefs

Cf. A014137, A121852 (sum of first k Catalan numbers A014137(k) is prime).

Programs

  • Maple
    s[0]:=1: for n to 1000 do s[n]:= s[n-1]+binomial(2*n+2, n+1)/(n+2) end do: a:= proc (n) if isprime(s[n]) = true then n else end if end proc: seq(a(n), n= 0.. 1000); # Emeric Deutsch, Aug 28 2007
  • Mathematica
    s = 0; Do[s = s + (2n)!/n!/(n+1)!; If[ PrimeQ[s], Print[n-1]], {n, 200}]

Formula

a(n) = A134775(n) - 1. - Michael S. Branicky, Jun 24 2025

Extensions

a(7)-a(9) from Emeric Deutsch, Aug 28 2007
Name clarified by Jon E. Schoenfield, Mar 25 2019
a(10)-a(15) from Michael S. Branicky, Jun 25 2025

A134776 Primes that are the sum of first k Catalan numbers for some integer k.

Original entry on oeis.org

3, 6917, 82499, 19720133460129649, 11784299926611415613401489, 3378745302877576498748105171045289001743711517992420088871061377762366601077190668071
Offset: 1

Views

Author

Alexander Adamchuk, Nov 11 2007

Keywords

Comments

Next term a(7) has 475 decimal digits and is too large to include. Corresponding numbers k such that the sum of first k Catalan numbers is a prime are listed in A134775.

Examples

			a(1) = 3 because C(1) + C(2) = 1 + 2 = 3 is a prime.
a(2) = 6917 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.
		

Crossrefs

Cf. A134775 (numbers k such that the sum of first k Catalan numbers is a prime).
Cf. A014138 (partial sums of Catalan numbers).
Cf. A000108 (Catalan numbers).

Programs

  • Mathematica
    f=0; Do[ f = f + Binomial[ 2n, n ]/(n+1); If[ PrimeQ[f], Print[ {n, f} ] ], {n, 1, 1000} ]
    Select[Accumulate[CatalanNumber[Range[200]]],PrimeQ] (* Harvey P. Dale, Mar 01 2019 *)

Formula

a(n) = A014138( A134775(n) - 1 ).
Showing 1-2 of 2 results.