login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A155158
Period 4: repeat [1, 5, 7, 3].
0
1, 5, 7, 3, 1, 5, 7, 3, 1, 5, 7, 3, 1, 5, 7, 3, 1, 5, 7, 3, 1, 5, 7, 3, 1, 5, 7, 3, 1, 5, 7, 3, 1, 5, 7, 3, 1, 5, 7, 3, 1, 5, 7, 3, 1, 5, 7, 3, 1, 5, 7, 3, 1, 5, 7, 3, 1, 5, 7, 3, 1, 5, 7, 3, 1, 5, 7, 3, 1, 5, 7, 3, 1, 5, 7, 3, 1, 5, 7, 3, 1, 5, 7, 3, 1, 5
OFFSET
0,2
FORMULA
a(n) = A048473(n) mod 10.
First differences: a(n+1)-a(n) = (-1)^floor(n/2)*A010694(n+1).
Second differences: a(n+2)-2*a(n+1)+a(n) = (-1)^floor(1+n/2)*A010696(n).
Third differences: a(n+3)-3*a(n+2)+3*a(n+1)-a(n) = (-1)^floor((n+3)/2)*A105398(n).
G.f.: (1+4*x+3*x^2)/(1-x+x^2-x^3). - Colin Barker, Feb 28 2012
a(n) = a(n-1) - a(n-2) + a(n-3) for n>2. - Wesley Ivan Hurt, Jul 08 2016
MAPLE
seq(op([1, 5, 7, 3]), n=0..50); # Wesley Ivan Hurt, Jul 08 2016
MATHEMATICA
PadRight[{}, 300, {1, 5, 7, 3}] (* Wesley Ivan Hurt, Jul 08 2016 *)
PROG
(Magma) &cat [[1, 5, 7, 3]^^30]; // Wesley Ivan Hurt, Jul 08 2016
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Paul Curtz, Jan 21 2009
STATUS
approved