A382397 Minimum size of a maximal subset of {1..n} such that every pair of distinct elements has a different difference.
0, 1, 2, 2, 2, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6
Offset: 0
Links
- Thomas Bloom, Does there exist a maximal Sidon set A ⊂ {1, ..., N} of size O(N^(1/3))?, Erdős Problems.
- Terence Tao, Erdős problem database, see no. 156.
- Wikipedia, Sidon sequence.
- Index entries for sequences related to Golomb rulers.
Programs
-
PARI
a(n)={ my(ismaxl(b,w)=for(k=1, n, if(!bittest(b,k) && !bitand(w,bitor(b,1<
n, if(ismaxl(b,w),0,n+1), my(s=self()(k+1, b,w)); b+=1<
Comments