login
a(n) = n*(n+1)/2 mod 8.
2

%I #14 Mar 12 2024 14:19:02

%S 0,1,3,6,2,7,5,4,4,5,7,2,6,3,1,0,0,1,3,6,2,7,5,4,4,5,7,2,6,3,1,0,0,1,

%T 3,6,2,7,5,4,4,5,7,2,6,3,1,0,0,1,3,6,2,7,5,4,4,5,7,2,6,3,1,0,0,1,3,6,

%U 2,7,5,4,4,5,7,2,6,3,1,0,0,1,3,6,2,7,5,4,4,5,7,2,6,3,1,0,0,1,3,6,2,7,5,4,4

%N a(n) = n*(n+1)/2 mod 8.

%H <a href="/index/Rec#order_15">Index entries for linear recurrences with constant coefficients</a>, signature (1,-1,1,-1,1,-1,1,-1,1,-1,1,-1,1,-1,1).

%t Mod[Accumulate[Range[0,110]],8] (* _Harvey P. Dale_, Nov 03 2013 *)

%Y Cf. A000217.

%Y See A105198 for further information.

%K nonn,easy

%O 0,3

%A _Oscar Takeshita_, May 01 2005