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!)
A188009 a(n) = [nr] - [nr-kr] - [kr], where r=(1+sqrt(5))/2, k=2, [ ]=floor. 10
0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 1 (list; graph; refs; listen; history; text; internal format)
OFFSET
1
COMMENTS
See A188014.
LINKS
FORMULA
a(n) = [nr] - [nr-2r] - [2r], where r=(1+sqrt(5))/2.
a(n) = A123740(n-2), n >= 3. - Wolfdieter Lang, Jun 27 2011
MATHEMATICA
r=(1+5^(1/2))/2; k=2;
t=Table[Floor[n*r]-Floor[(n-k)*r]-Floor[k*r], {n, 1, 220}] (* A188009 *)
Flatten[Position[t, 0]] (* A188010 *)
Flatten[Position[t, 1]] (* First column of array A101866 *)
PROG
(Python)
from math import isqrt
def A188009(n): return (n+isqrt(m:=5*n**2)>>1)-(n-2+isqrt(m-20*(n-1))>>1)-3 if n > 1 else 0 # Chai Wah Wu, Aug 29 2022
CROSSREFS
Sequence in context: A188041 A261990 A144601 * A353812 A353813 A353814
KEYWORD
nonn
AUTHOR
Clark Kimberling, Mar 19 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 April 19 21:09 EDT 2024. Contains 371798 sequences. (Running on oeis4.)