OFFSET
0,4
COMMENTS
First differences are 6-periodic.
REFERENCES
Srinivasa Ramanujan, Question 723, Collected Papers of Srinivasa Ramanujan, p. 332, Ed. G. H. Hardy et al., AMS, Chelsea, 2000.
LINKS
Michael Penn, A great floor equation by Ramanujan, YouTube video, 2021.
Srinivasa Ramanujan, Question 723, J. Ind. Math. Soc., Vol. 7 (1915), p. 240.
Index entries for linear recurrences with constant coefficients, signature (1,0,0,0,0,1,-1).
FORMULA
a(n) = [n/2] + [(n+3)/6] = [n/3] + [(n+2)/6] + [(n+4)/6].
G.f.: x^2*(1+x+x^2+x^4)/((1-x)*(1-x^6)).
a(-n) = -a(n-1)-1.
a(n) = 4 + a(n-6).
Sum_{n>=2} (-1)^n/a(n) = Pi/8 + log(2)/4. - Amiram Eldar, Jan 01 2025
MATHEMATICA
CoefficientList[Series[x^2 (1 + x + x^2 + x^4)/((1 - x) (1 - x^6)), {x, 0, 73}], x] (* Michael De Vlieger, Apr 13 2016 *)
LinearRecurrence[{1, 0, 0, 0, 0, 1, -1}, {0, 0, 1, 2, 3, 3, 4}, 80] (* Harvey P. Dale, Jul 04 2016 *)
PROG
(PARI) a(n) = floor(n/2) + floor((n+3)/6)
(PARI) a(n)=n\2+(n+3)\6
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Ralf Stephan, Aug 05 2004
EXTENSIONS
New name based on Mar 13 2007 comment of Vladeta Jovovic. - Charles R Greathouse IV, Jan 10 2022
STATUS
approved