login
This site is supported by donations to The OEIS Foundation.
Logo

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A194669 Number of k in [1,n] for which <r^n>+<r^k> > 1, where < > = fractional part and r = sqrt(5). 4
0, 0, 0, 0, 3, 0, 2, 0, 3, 0, 4, 0, 5, 0, 7, 0, 0, 0, 2, 0, 3, 0, 8, 0, 8, 0, 13, 0, 3, 0, 2, 0, 14, 0, 0, 0, 0, 0, 6, 0, 16, 0, 21, 0, 20, 0, 9, 0, 14, 0, 18, 0, 16, 0, 4, 0, 26, 0, 11, 0, 18, 0, 5, 0, 30, 0, 20, 0, 32, 0, 21, 0, 21, 0, 20, 0, 13, 0, 20, 0, 13, 0, 30, 0, 19, 0, 10, 0 (list; graph; refs; listen; history; text; internal format)
OFFSET

1,5

LINKS

Table of n, a(n) for n=1..88.

MATHEMATICA

r = Sqrt[5]; 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}]  (* A194669 *)

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}]]

(* A194670 *)

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}]  (* A194671 *)

CROSSREFS

Sequence in context: A171772 A092735 A035464 * A019746 A112574 A061064

Adjacent sequences:  A194666 A194667 A194668 * A194670 A194671 A194672

KEYWORD

nonn

AUTHOR

Clark Kimberling, Sep 01 2011

STATUS

approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
Recent Additions | More pages | Superseeker | Maintained by The OEIS Foundation Inc.

Content is available under The OEIS End-User License Agreement .

Last modified June 19 11:03 EDT 2013. Contains 226404 sequences.