OFFSET
0
LINKS
Fraenkel, Aviezri S., Mordechai Mushkin, and Uzi Tassa, Determination of floor(n*theta) by its sequence of differences, Canad. Math. Bull 21:4 (1978), pp. 441-446.
Index entries for linear recurrences with constant coefficients, signature (0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1).
FORMULA
Equals (0, 1, 0, 1, 0, 1, 0, 0, 1, 0, 1, 0, 1, 0, 1, 0, 0, 1, 0, 1, 0, 1, 0, 1, 0) repeated.
PROG
(PARI) a(n)=[0, 1, 0, 1, 0, 1, 0, 0, 1, 0, 1, 0, 1, 0, 1, 0, 0, 1, 0, 1, 0, 1, 0, 1, 0][n%25+1] \\ Charles R Greathouse IV, Sep 09 2016
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
N. J. A. Sloane, Sep 09 2016
STATUS
approved