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”).

A159957
Period 25 : 0,1,2,3,4,1,2,3,4,0,2,3,4,0,1,3,4,0,1,2,4,0,1,2,3 .
0
0, 1, 2, 3, 4, 1, 2, 3, 4, 0, 2, 3, 4, 0, 1, 3, 4, 0, 1, 2, 4, 0, 1, 2, 3, 0, 1, 2, 3, 4, 1, 2, 3, 4, 0, 2, 3, 4, 0, 1, 3, 4, 0, 1, 2, 4, 0, 1, 2, 3, 0, 1, 2, 3, 4, 1, 2, 3, 4, 0, 2, 3, 4, 0, 1, 3, 4, 0, 1, 2, 4, 0, 1, 2, 3, 0, 1, 2, 3, 4, 1, 2, 3, 4, 0, 2, 3, 4, 0, 1, 3, 4, 0, 1, 2, 4, 0, 1, 2, 3
OFFSET
0,3
LINKS
Index entries for linear recurrences with constant coefficients, signature (1,0,0,0,-1,1,0,0,0,-1,1,0,0,0,-1,1,0,0,0,-1,1).
FORMULA
a(n+25)= a(n) with a(0)=a(9)=a(13)=a(17)=a(21)=0, a(1)=a(5)=a(14)=a(18)=a(22)=1, a(2)=a(6)=a(10)=a(15)=a(24)=2, a(3)=a(7)=a(11)=a(15)=a(24)=3, a(4)=a(8)=a(12)=a(16)=a(20)=4 .
MATHEMATICA
PadRight[{}, 120, {0, 1, 2, 3, 4, 1, 2, 3, 4, 0, 2, 3, 4, 0, 1, 3, 4, 0, 1, 2, 4, 0, 1, 2, 3}] (* Harvey P. Dale, Jun 10 2016 *)
CROSSREFS
Sequence in context: A309198 A256914 A171171 * A053840 A010883 A011542
KEYWORD
easy,nonn
AUTHOR
Philippe Deléham, Apr 27 2009
STATUS
approved