login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
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 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,2
LINKS
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
Sequence in context: A110937 A099287 A058176 * A344111 A241140 A109986
KEYWORD
nonn,easy
AUTHOR
Paul Curtz, Jan 21 2009
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 24 20:08 EDT 2024. Contains 371963 sequences. (Running on oeis4.)