A034463 Maximal number of residue classes mod n such that no subset adds to 0.
0, 1, 1, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 9, 8, 9, 9, 9, 9, 9, 9, 9, 9, 10, 9, 10, 10, 10, 10, 10, 10, 10, 10, 11, 10, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 13, 12
Offset: 1
Examples
For n=20, {1,2,3,4,5,6} shows a(20)>= 6 (in fact a(20)=6). For n=30, {1,2,3,4,5,6,7} shows that a(30)>=7 (in fact a(30)=7).
References
- R. K. Guy, Unsolved Problems in Number Theory, Sect. C15.
Links
- Thomas Bloom, Problem 540, Erdős Problems.
Programs
-
PARI
a(n)=my(v=vector(n,i,i),t,w,r);for(i=1,2^(n-1)-1, if(hammingweight(i)<=r,next); t=vecextract(v,i); w=vector(n); w[1]=1; for(j=1,#t,w+=concat(w[t[j]+1..n],w[1..t[j]]); if(w[1]>1, next(2))); r=hammingweight(i)); r \\ Charles R Greathouse IV, Oct 16 2013
Extensions
The reference gives a(5)=3, but this is incorrect, a(5)=2.
More terms from John W. Layman, Oct 02 2002
Terms a(36)-a(87) from Jon E. Schoenfield, Jun 13 2010
Comments