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.

A023986 Sum of exponents of primes in C(4n,2n) - sum of exponents of primes in C(2n,n).

Original entry on oeis.org

0, 1, 1, 2, 3, 1, 2, 5, 3, 5, 6, 4, 6, 6, 3, 4, 6, 5, 4, 6, 5, 8, 10, 7, 9, 9, 7, 9, 8, 7, 10, 12, 10, 9, 13, 11, 13, 16, 12, 13, 14, 9, 11, 12, 12, 13, 12, 12, 13, 15, 11, 13, 16, 13, 15, 17, 16, 19, 19, 16, 15, 17, 18, 15, 18, 17, 19, 19, 13, 17, 19, 17, 18, 18, 15, 19, 21, 18, 17, 20, 19, 19, 22, 19, 22
Offset: 0

Views

Author

Keywords

Crossrefs

Programs

  • Mathematica
    a[n_] := PrimeOmega[Binomial[4*n, 2*n]] - PrimeOmega[Binomial[2*n, n]]; Array[a, 100, 0] (* Amiram Eldar, Jun 11 2025 *)
  • PARI
    a(n) = my(v = binomial(4*n, 2*n)/binomial(2*n, n)); bigomega(numerator(v)) - bigomega(denominator(v)); \\ Michel Marcus, Sep 30 2013
    
  • PARI
    vp(n,p)=my(s);while(n\=p,s+=n);s
    a(n)=my(s);forprime(p=2,4*n,s+=vp(4*n,p)-3*vp(2*n,p)+2*vp(n,p)); s \\ Charles R Greathouse IV, Sep 30 2013

Formula

From Amiram Eldar, Jun 11 2025: (Start)
a(n) = A023834(n) - A023816(n).
a(n) = A022559(4*n) - 3*A022559(2*n) + 2*A022559(n). (End)

Extensions

Name clarified, offset changed to 0 and a(0) prepended by Amiram Eldar, Jun 11 2025