A249442 a(n) is the smallest m such that binomial(n,m) is not squarefree, or a(n)=0, if there is no such m.
0, 0, 0, 0, 1, 0, 3, 0, 1, 1, 2, 0, 1, 5, 3, 7, 1, 2, 1, 2, 1, 4, 3, 0, 1, 1, 2, 1, 1, 3, 3, 5, 1, 2, 3, 4, 1, 2, 3, 4, 1, 2, 3, 8, 1, 1, 2, 21, 1, 1, 1, 2, 1, 4, 1, 2, 1, 2, 3, 6, 1, 6, 3, 1, 1, 2, 3, 4, 1, 6, 3, 8, 1, 2, 3, 1, 1, 3, 3, 8, 1, 1, 2, 3, 1, 5, 3
Offset: 0
Keywords
Links
- Antti Karttunen, Table of n, a(n) for n = 0..10000
Crossrefs
Programs
-
Mathematica
Table[If[#>n,0,#]&[NestWhile[#+1&,1,SquareFreeQ[Binomial[n,#]]&]],{n,0,100}] (* Peter J. C. Moses, Nov 04 2014 *)
-
PARI
A249442(n) = { for(k=0,n\2,if(0==moebius(binomial(n,k)),return(k))); return(0); } for(n=0, 10000, write("b249442.txt", n, " ", A249442(n))); \\ Antti Karttunen, Nov 04 2014
Formula
Extensions
More terms from Peter J. C. Moses, Oct 28 2014
Comments