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!)
A276863 First differences of the Beatty sequence A276854 for 1 + sqrt(5). 4

%I #23 Mar 16 2021 20:32:39

%S 3,3,3,3,4,3,3,3,4,3,3,3,4,3,3,3,4,3,3,3,3,4,3,3,3,4,3,3,3,4,3,3,3,4,

%T 3,3,3,3,4,3,3,3,4,3,3,3,4,3,3,3,4,3,3,3,3,4,3,3,3,4,3,3,3,4,3,3,3,4,

%U 3,3,3,3,4,3,3,3,4,3,3,3,4,3,3,3,4,3

%N First differences of the Beatty sequence A276854 for 1 + sqrt(5).

%H Clark Kimberling, <a href="/A276863/b276863.txt">Table of n, a(n) for n = 1..10000</a>

%F a(n) = floor(n*r) - floor(n*r - r), where r = 1 + sqrt(5), n >= 1.

%F a(n) = A188187(n) + 3, as follows right from the definitions. - _Michel Dekking_, Sep 02 2019

%F a(n) = 1+floor(n*sqrt(5))-floor((n-1)*sqrt(5)). - _Chai Wah Wu_, Mar 16 2021

%t z = 500; r = 1+Sqrt[5]; b = Table[Floor[k*r], {k, 0, z}]; (* A276854 *)

%t Differences[b] (* A276863 *)

%o (Python)

%o from sympy import integer_nthroot

%o def A276863(n): return 1+integer_nthroot(5*n**2,2)[0]-integer_nthroot(5*(n-1)**2,2)[0] # _Chai Wah Wu_, Mar 16 2021

%Y Cf. A188187, A276854, A276881.

%K nonn,easy

%O 1,1

%A _Clark Kimberling_, Sep 24 2016

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 March 29 03:51 EDT 2024. Contains 371264 sequences. (Running on oeis4.)