A102508 Suppose there are equally spaced chairs around a round table. Then a(n) is the maximal number of chairs for which there exists a seating arrangement of n people around the table such that if a waiter puts two glasses (randomly) on the table in front of two (different) chairs, it is always possible to turn the table so that the two glasses end up in front of two seated persons.
1, 3, 7, 13, 21, 31, 39, 57, 73, 91, 95, 133
Offset: 1
Examples
a(5)=21 because if we have 21 chairs, 5 persons can sit down on chairs 1, 4, 5, 10 and 12. 1 == 5-4 (mod 21). 2 == 12-10 (mod 21). 3 == 4-1 (mod 21). 4 == 5-1 (mod 21). 5 == 10-5 (mod 21). 6 == 10-4 (mod 21). 7 == 12-5 (mod 21). 8 == 12-4 (mod 21). 9 == 10-1 (mod 21). 10 == 1-12 (mod 21). It is impossible to do the same with 22 or more chairs.
Links
- Dan Gordon, Difference Sets
- Don Reble, C++ Program
Extensions
3 more terms from David Wasserman, Apr 15 2008
Edited by Max Alekseyev, Apr 29 2010, Mar 01 2015
a(11) = 95 from Don Reble, Feb 25 2015. - N. J. A. Sloane, Mar 01 2015
a(12) from Max Alekseyev, Mar 01 2015
Comments