The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A194681 Triangular array: T(n,k)=[<n*r>+<k*r>], where [ ] = floor, < > = fractional part, and r=3-sqrt(2). 4
1, 0, 0, 1, 0, 1, 0, 0, 1, 0, 1, 1, 1, 1, 1, 1, 0, 1, 0, 1, 1, 0, 0, 0, 0, 1, 0, 0, 1, 0, 1, 1, 1, 1, 0, 1, 0, 0, 1, 0, 1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 0, 1, 0, 1, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1, 0, 1, 1, 0, 1, 0, 1, 1, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0 (list; table; graph; refs; listen; history; text; internal format)
OFFSET
1
COMMENTS
n-th row sum gives number of k in [0,1] for which <n*r>+<k*r> > 1; see A194678.
LINKS
EXAMPLE
First ten rows:
1
0 0
1 0 1
0 0 1 0
1 1 1 1 1
1 0 1 0 1 1
0 0 0 0 1 0 0
1 0 1 1 1 1 0 1
0 0 1 0 1 0 0 0 0
1 1 1 1 1 1 0 1 1 1
MATHEMATICA
r = 3 - Sqrt[2]; z = 15;
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}]]
(* A194679 *)
TableForm[Table[w[n, k], {n, 1, z}, {k, 1, n}]]
s[n_] := Sum[w[n, k], {k, 1, n}] (* A194680 *)
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}]]
(* A194681 *)
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}] (* A194682 *)
PROG
(PARI) for(n=1, 10, for(k=1, n, print1(floor(frac(n*(3-sqrt(2))) + frac(k*(3-sqrt(2)))), ", "))) \\ G. C. Greubel, Feb 08 2018
CROSSREFS
Cf. A194682.
Sequence in context: A285076 A338353 A267598 * A359764 A065043 A189298
KEYWORD
nonn,tabl
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 | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified May 13 13:57 EDT 2024. Contains 372519 sequences. (Running on oeis4.)