A130806 Period 6: 1,4,3,-1,-4,-3.
1, 4, 3, -1, -4, -3, 1, 4, 3, -1, -4, -3, 1, 4, 3, -1, -4, -3, 1, 4, 3, -1, -4, -3, 1, 4, 3, -1, -4, -3, 1, 4, 3, -1, -4, -3, 1, 4, 3, -1, -4, -3, 1, 4, 3, -1, -4, -3, 1, 4, 3
Offset: 0
Links
- Index entries for linear recurrences with constant coefficients, signature (1,-1).
Programs
-
Mathematica
PadRight[{},100,{1,4,3,-1,-4,-3}] (* Paolo Xausa, Dec 05 2023 *)
-
PARI
a(n)=[1,4,3,-1,-4,-3][n%6+1] \\ Charles R Greathouse IV, Jun 02 2011
Formula
Extensions
Edited by N. J. A. Sloane, Sep 15 2007
Comments