0,3

I.e., in permutations A057161 and A057162 (also A057503 and A057504), the longest cycle among all cycles between the (A014138(n-2)+1)-th and (A014138(n-1))-th terms.

Table of n, a(n) for n=0..66.

Index entries for linear recurrences with constant coefficients, signature (2,-1).

a(0)=1, a(1)=1, a(2)=2, a(n)=n+2.

From Chai Wah Wu, Jul 28 2022: (Start)

a(n) = 2*a(n-1) - a(n-2) for n > 4.

G.f.: (-2*x^4 + 2*x^3 + x^2 - x + 1)/(x - 1)^2. (End)

Cf. A057542, A057543, A057545.

Sequence in context: A198547 A120678 A078384 * A039239 A039182 A039135

Adjacent sequences: A057541 A057542 A057543 * A057545 A057546 A057547

nonn

Antti Karttunen, Sep 07 2000

More terms from Sean A. Irvine, Jun 13 2022

approved