[go: up one dir, main page]

login
A276878
Sums-complement of the Beatty sequence for 2*Pi.
3
1, 2, 3, 4, 5, 8, 9, 10, 11, 14, 15, 16, 17, 20, 21, 22, 23, 24, 27, 28, 29, 30, 33, 34, 35, 36, 39, 40, 41, 42, 45, 46, 47, 48, 49, 52, 53, 54, 55, 58, 59, 60, 61, 64, 65, 66, 67, 68, 71, 72, 73, 74, 77, 78, 79, 80, 83, 84, 85, 86, 89, 90, 91, 92, 93, 96
OFFSET
1,2
COMMENTS
See A276871 for a definition of sums-complement and guide to related sequences.
EXAMPLE
The Beatty sequence for 2*Pi is A038130 = (0,6,12,18,25,31,37,...), with difference sequence s = A276861 = (6,6,6,7,6,6,6,7,6,6,7,...). The sums s(j)+s(j+1)+...+s(k) include (6,7,12,13,...), with complement (1,2,3,4,5,8,9,10,...).
MATHEMATICA
z = 500; r = 2*Pi; b = Table[Floor[k*r], {k, 0, z}]; (* A038130 *)
t = Differences[b]; (* A276861 *)
c[k_, n_] := Sum[t[[i]], {i, n, n + k - 1}];
u[k_] := Union[Table[c[k, n], {n, 1, z - k + 1}]];
w = Flatten[Table[u[k], {k, 1, z}]]; Complement[Range[Max[w]], w] (* A276878 *)
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Clark Kimberling, Sep 27 2016
STATUS
approved