This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.
%I A133875 #17 Sep 08 2022 08:45:32 %S A133875 1,1,1,1,1,2,2,2,2,2,3,3,3,3,3,4,4,4,4,4,0,0,0,0,0,1,1,1,1,1,2,2,2,2, %T A133875 2,3,3,3,3,3,4,4,4,4,4,0,0,0,0,0,1,1,1,1,1,2,2,2,2,2,3,3,3,3,3,4,4,4, %U A133875 4,4,0,0,0,0,0,1,1,1,1,1,2,2,2,2,2,3,3,3,3,3,4,4,4,4,4,0,0,0,0,0,1,1,1,1,1 %N A133875 n modulo 5 repeated 5 times. %C A133875 Periodic with length 5^2 = 25. %H A133875 <a href="/index/Rec#order_21">Index entries for linear recurrences with constant coefficients</a>, signature (1, 0, 0, 0, -1, 1, 0, 0, 0, -1, 1, 0, 0, 0, -1, 1, 0, 0, 0, -1, 1). %F A133875 a(n) = (1 + floor(n/5)) mod 5. %F A133875 a(n) = A010874(A002266(n+5)). %F A133875 a(n) = 1 + floor(n/5) - 5*floor((n+5)/25). %F A133875 a(n) = (((n+5) mod 25) - (n mod 5)) / 5. %F A133875 a(n) = ((n + 5 - (n mod 5)) / 5) mod 5. %F A133875 a(n) = A010874((n + 5 - A010874(n))/5). %F A133875 a(n) = binomial(n+5, n) mod 5 = binomial(n+5, 5) mod 5. %F A133875 a(n) = +a(n-1) -a(n-5) +a(n-6) -a(n-10) +a(n-11) -a(n-15) +a(n-16) -a(n-20) +a(n-21). - R. J. Mathar, Sep 03 2011 %F A133875 G.f.: ( 1+2*x^5+3*x^10+4*x^15 ) / ( (1-x)*(x^20+x^15+x^10+x^5+1) ). - _R. J. Mathar_, Sep 03 2011 %p A133875 A133875:=n->((1+floor(n/5)) mod 5); seq(A133875(n), n=0..100); # _Wesley Ivan Hurt_, Jun 06 2014 %t A133875 Table[Mod[1 + Floor[n/5], 5], {n, 0, 100}] (* _Wesley Ivan Hurt_, Jun 06 2014 *) %t A133875 LinearRecurrence[{1,0,0,0,-1,1,0,0,0,-1,1,0,0,0,-1,1,0,0,0,-1,1},{1,1,1,1,1,2,2,2,2,2,3,3,3,3,3,4,4,4,4,4,0},120] (* _Harvey P. Dale_, Dec 14 2017 *) %o A133875 (Magma) [(1 + Floor(n/5)) mod 5 : n in [0..50]]; // _Wesley Ivan Hurt_, Jun 06 2014 %Y A133875 Cf. A133620-A133625, A133630, A038509, A133634-A133636. %Y A133875 Cf. A133885, A133880, A133890, A133900, A133910. %K A133875 nonn,easy,less %O A133875 0,6 %A A133875 _Hieronymus Fischer_, Oct 10 2007