OFFSET

0,5

COMMENTS

Let phi be the golden mean. Let B be the generalized Beatty sequence B(n):= 2*floor(n*phi) - 3*n, n = 0,1,2,... Then a(n) = B(n+5) for n = 0,...,200, except for n = 84, 118, 152, 165, 173, 186. - Michel Dekking, Mar 30 2020

REFERENCES

James Propp, posting to math-fun mailing list May 30 1997.

LINKS

Vincenzo Librandi, Table of n, a(n) for n = 0..200

MATHEMATICA

f[n_] := Sum[(-1)^k*x^(2*k + 1)/(2*k + 1)!, {k, 0, n}]; a[n_] := (CountRoots[f[n], x] - 1)/2; Table[a[n], {n, 0, 62}] (* Jean-François Alcover, Apr 16 2013 *)

CROSSREFS

KEYWORD

nonn,easy,nice

AUTHOR

EXTENSIONS

More terms from James A. Sellers

STATUS

approved