A276871
Sums-complement of the Beatty sequence for sqrt(5).
Original entry on oeis.org
1, 10, 19, 28, 37, 48, 57, 66, 75, 86, 95, 104, 113, 124, 133, 142, 151, 162, 171, 180, 189, 198, 209, 218, 227, 236, 247, 256, 265, 274, 285, 294, 303, 312, 323, 332, 341, 350, 359, 370, 379, 388, 397, 408, 417, 426, 435, 446, 455, 464, 473, 484, 493, 502
Offset: 1
The Beatty sequence for sqrt(5) is A022839 = (0,2,4,6,8,11,13,15,...), with difference sequence s = A081427 = (2,2,2,2,3,2,2,2,3,2,...). The sums s(j)+s(j+1)+...+s(k) include (2,3,4,5,6,7,8,9,11,12,...), with complement (1,10,19,28,37,...).
-
z = 500; r = Sqrt[5]; b = Table[Floor[k*r], {k, 0, z}]; (* A022839 *)
t = Differences[b]; (* A081427 *)
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]; (* A276871 *)
A276872
Sums-complement of the Beatty sequence for sqrt(6).
Original entry on oeis.org
1, 6, 11, 16, 21, 28, 33, 38, 43, 50, 55, 60, 65, 70, 77, 82, 87, 92, 99, 104, 109, 114, 119, 126, 131, 136, 141, 148, 153, 158, 163, 168, 175, 180, 185, 190, 197, 202, 207, 212, 217, 224, 229, 234, 239, 246, 251, 256, 261, 268, 273, 278, 283, 288, 295, 300
Offset: 1
The Beatty sequence for sqrt(6) is A022840 = (0, 2, 4, 7, 9, 12, 14, 17,...), with difference sequence s = A276856 = (2, 2, 3, 2, 3, 2, 3, 2, 3, 2, 2, 3, 2, 3, 2,...). The sums s(j)+s(j+1)+...+s(k) include (2,3,4,5,7,8,9,10,12,...), with complement (1,6,11,16,21,...).
-
z = 500; r = Sqrt[6]; b = Table[Floor[k*r], {k, 0, z}]; (* A022840 *)
t = Differences[b]; (* A276856 *)
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]; (* A276872 *)
Showing 1-2 of 2 results.
Comments