OFFSET
0
LINKS
Aviezri S. Fraenkel, 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.
a(n) = floor((n+2)*r) - floor((n+1)*r) - 1, where r = 36/25. - Ridouane Oudra, Nov 22 2024
MAPLE
seq(floor(36*(n+2)/25)-floor(36*(n+1)/25)-1, n=0..100); # Ridouane Oudra, Nov 22 2024
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