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!)
A187946 [nr+kr]-[nr]-[kr], where r=(1+sqrt(5))/2, k=5, [ ]=floor. 4
0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0 (list; graph; refs; listen; history; text; internal format)
OFFSET
1
COMMENTS
See A187950.
LINKS
FORMULA
a(n)=[nr+5r]-[nr]-[5r], where r=(1+sqrt(5))/2.
MATHEMATICA
r=(1+5^(1/2))/2;
seqA=Table[Floor[(n+5)r]-Floor[n*r]-8, {n, 1, 220}] (* A187946 *)
Flatten[Position[seqA, 0] ] (* A187947 *)
Flatten[Position[seqA, 1] ] (* A134862 *)
PROG
(Python)
from __future__ import division
from gmpy2 import isqrt
def A187946(n):
return int((isqrt(5*(n+5)**2)+n+1)//2 -(isqrt(5*n**2)+n)//2 - 6) # Chai Wah Wu, Oct 08 2016
CROSSREFS
Sequence in context: A366124 A295662 A367512 * A330549 A342019 A323510
KEYWORD
nonn
AUTHOR
Clark Kimberling, Mar 16 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 24 10:11 EDT 2024. Contains 371935 sequences. (Running on oeis4.)