login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A194666
Number of k in [1,n] for which <r^n>+<r^k> > 1, where < > = fractional part and r = sqrt(3).
4
1, 0, 0, 0, 2, 0, 3, 0, 2, 0, 6, 0, 5, 0, 8, 0, 9, 0, 10, 0, 11, 0, 10, 0, 13, 0, 11, 0, 8, 0, 16, 0, 17, 0, 15, 0, 19, 0, 16, 0, 18, 0, 21, 0, 7, 0, 15, 0, 9, 0, 21, 0, 27, 0, 28, 0, 27, 0, 19, 0, 11, 0, 24, 0, 29, 0, 9, 0, 23, 0, 18, 0, 6, 0, 16, 0, 39, 0, 39, 0, 32, 0, 2, 0, 6, 0
OFFSET
1,5
MATHEMATICA
r = Sqrt[3]; z = 13;
p[x_] := FractionalPart[x]; f[x_] := Floor[x];
w[n_, k_] := p[r^n] + p[r^k] - p[r^n + r^k]
Flatten[Table[w[n, k], {n, 1, z}, {k, 1, n}]]
TableForm[Table[w[n, k], {n, 1, z}, {k, 1, n}]]
s[n_] := Sum[w[n, k], {k, 1, n}] (* A194666 *)
Table[s[n], {n, 1, 100}]
h[n_, k_] := f[p[n*r] + p[k*r]]
Flatten[Table[h[n, k], {n, 1, z}, {k, 1, n}]]
(* A194667 *)
TableForm[Table[h[n, k], {n, 1, z}, {k, 1, n}]]
t[n_] := Sum[h[n, k], {k, 1, n}]
Table[t[n], {n, 1, 100}] (* A194668 *)
CROSSREFS
Sequence in context: A292561 A027640 A349448 * A325799 A355930 A229946
KEYWORD
nonn
AUTHOR
Clark Kimberling, Sep 01 2011
STATUS
approved