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.

A178101 Cardinality of the set of d, 2<=d<=n/2, which divide binomial(n-d-1,d-1) and are not coprime to n.

Original entry on oeis.org

0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 2, 1, 1, 0, 2, 0, 3, 0, 4, 0, 2, 0, 3, 1, 2, 0, 2, 0, 2, 3, 5, 0, 5, 0, 6, 3, 3, 0, 6, 1, 3, 3, 8, 0, 5, 0, 11, 3, 8, 1, 8, 0, 5, 3, 7, 0, 6, 0, 8, 4, 5, 1, 7, 0, 7, 5, 10, 0, 4, 1, 9, 3, 6, 0, 10, 2, 8, 4, 15, 2, 10, 0, 16, 6, 10
Offset: 1

Views

Author

Vladimir Shevelev, May 20 2010

Keywords

Comments

Note that every d>1 divides binomial(n-d-1,d-1), if gcd(n,d)=1.
Numbers n with cardinality 0 are in A138389, with cardinatly 1 in A178071, with cardinality 2 in A178098 and with cardinality 3 in A178099.

Crossrefs

Programs

  • Maple
    A178101 := proc(n) local dvs,d ; dvs := {} ; for d from 1 to n/2 do if gcd(n,d) > 1 and d in numtheory[divisors]( binomial(n-d-1,d-1)) then dvs := dvs union {d} ; end if; end do: nops(dvs) end proc: # R. J. Mathar, May 28 2010
  • Mathematica
    a[n_] := Sum[Boole[Divisible[Binomial[n-d-1, d-1], d] && !CoprimeQ[d, n]], {d, 2, n/2}];
    Array[a, 100] (* Jean-François Alcover, Nov 17 2017 *)
  • PARI
    a(n) = sum(d=2, n\2, (gcd(d, n) != 1) && ((binomial(n-d-1,d-1) % d) == 0)); \\ Michel Marcus, Feb 17 2016

Extensions

a(54), a(68), a(70), a(72), a(78) etc corrected by R. J. Mathar, May 28 2010