[go: up one dir, main page]

login
A276879
Sums-complement of the Beatty sequence for 1 + sqrt(2).
3
1, 6, 11, 18, 23, 30, 35, 40, 47, 52, 59, 64, 69, 76, 81, 88, 93, 100, 105, 110, 117, 122, 129, 134, 139, 146, 151, 158, 163, 170, 175, 180, 187, 192, 199, 204, 209, 216, 221, 228, 233, 238, 245, 250, 257, 262, 269, 274, 279, 286, 291, 298, 303, 308, 315
OFFSET
1,2
COMMENTS
See A276871 for a definition of sums-complement and guide to related sequences.
EXAMPLE
The Beatty sequence for 1 + sqrt(2) is A003151 = (0,2,4,7,9,12,14,16,...), with difference sequence s = A276862 = (2,2,3,2,3,2,2,3,2,3,2,2,3,2,3,...). The sums s(j)+s(j+1)+...+s(k) include (2,3,4,5,7,8,9,12,...), with complement (1,6,11,18,23,...).
MATHEMATICA
z = 500; r = 1+Sqrt[2]; b = Table[Floor[k*r], {k, 0, z}]; (* A003151 *)
t = Differences[b]; (* A276862 *)
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] (* A276879 *)
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Clark Kimberling, Sep 27 2016
STATUS
approved