OFFSET
1,2
COMMENTS
Equations of this general form: (n/(exp(1/(r*n))-1)) have a fractional portion that converges to one or more rational fractions if r is rational. They have second differences that are nearly constant before the floor function, and repeat in patterns when calculated after the floor function.
The fractional portion of this equation (before the floor function) oscillates between two fractions that converge towards 1/24 and 13/24.
Second differences of a(n) = repeat{3,5}.
First differences of a(n) = A075123(n+3).
Partial sums of a(n) = A033951(n).
LINKS
Index entries for linear recurrences with constant coefficients, signature (2,0,-2,1).
FORMULA
From Ralf Stephan, Mar 28 2014: (Start)
a(n) = (1/4)*(8n^2 - 2n - 1 + (-1)^n).
G.f.: x*(2*x^2 + 5*x + 1)/((1-x^2)*(1-x)^2). (End)
a(n) = 2*a(n-1) - 2*a(n-3) + a(n-4). - Wesley Ivan Hurt, Apr 01 2022
E.g.f.: (x*(4*x + 3)*cosh(x) + (4*x^2 + 3*x - 1)*sinh(x))/2. - Stefano Spezia, Nov 23 2023
MATHEMATICA
Table[Floor[n/(Exp[1/(2 n)] - 1)], {n, 100}] (* Wesley Ivan Hurt, Apr 01 2022 *)
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Richard R. Forberg, Dec 29 2013
STATUS
approved