login
Least significant digit of A077749(n).
1

%I #30 Aug 26 2024 15:20:26

%S 0,2,6,4,0,2,6,4,0,2,6,4,0,2,6,4,0,2,6,4,0,2,6,4,0,2,6,4,0,2,6,4,0,2,

%T 6,4,0,2,6,4,0,2,6,4,0,2,6,4,0,2,6,4,0,2,6,4,0,2,6,4,0,2,6,4,0,2,6,4,

%U 0,2,6,4,0,2,6,4,0,2,6,4,0,2,6,4,0,2,6,4,0,2,6,4,0,2,6,4,0,2,6,4,0,2,6,4,0

%N Least significant digit of A077749(n).

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

%F a(n) = A077749(n) - 10*floor(A077749(n)/10).

%F a(4n-3) = 0, a(4n-2) = 2, a(4n-1) = 6, a(4n) = 4, n > 0. - _Sascha Kurz_, Jan 04 2003

%F a(n) = 3-3*cos(n*Pi/2)-sin(n*Pi/2). - _Wesley Ivan Hurt_, May 07 2021

%F a(n) = A010879(A077749(n)). - _Michel Marcus_, Aug 22 2024

%F From _Stefano Spezia_, Aug 26 2024: (Start)

%F G.f.: 2*x*(1 + 2*x)/((1 - x)*(1 + x^2)).

%F E.g.f.: 3*exp(x) - 3*cos(x) - sin(x). (End)

%p seq((2^(n+1)-2) mod 10, n=0..160);

%Y Cf. A010879, A077749.

%K base,nonn,easy

%O 0,2

%A _Amarnath Murthy_, Nov 20 2002

%E More terms from _Sascha Kurz_, Jan 04 2003