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.

A245268 Sum of binomial(n,k) over squarefree k.

Original entry on oeis.org

1, 3, 7, 14, 26, 48, 92, 184, 375, 758, 1497, 2884, 5461, 10286, 19507, 37584, 73866, 147987, 301075, 618794, 1278116, 2640993, 5439593, 11138764, 22640100, 45644797, 91293390, 181301470, 358024924, 704359427, 1383415456, 2718141072, 5351701032, 10570658330
Offset: 1

Views

Author

Eric M. Schmidt, Jul 15 2014

Keywords

Crossrefs

Programs

  • Mathematica
    a[n_] := Sum[Binomial[n, k], {k, Select[Range[n], SquareFreeQ]}]; Array[a, 34] (* Amiram Eldar, May 25 2025 *)
  • PARI
    a(n) = sum(k=1, n, if (issquarefree(k), binomial(n,k), 0)); \\ Michel Marcus, Jul 16 2014
  • Sage
    def A235268(n) : return sum(binomial(n,k) for k in range(1,n+1) if is_squarefree(k))
    

Formula

a(n) ~ 2^n/zeta(2). [Take p = 1/2 in Nymann and Leahey.]