T(n,3,1), where T(n,k,s) with 0<=s<n is the number of sequences a_1,...,a_(k*n+s) of integers 0,1,...,n such that the 'bumped' sequence b_1,...,b_(k*n+s) has exactly s n's, where b_i=a_i + j (mod n+1) with minimal j>=0 such that b_0,...,b_i contain at most k elements equal to b_i.

A006700

T(n,3,1), where T(n,k,s) with 0<=s<n is the number of sequences a_1,...,a_(k*n+s) of integers 0,1,...,n such that the 'bumped' sequence b_1,...,b_(k*n+s) has exactly s n's, where b_i=a_i + j (mod n+1) with minimal j>=0 such that b_0,...,b_i contain at most k elements equal to b_i.

Terms

    a(0) =1a(1) =5a(2) =393a(3) =131473a(4) =117316993a(5) =219639324573

External references