Determine the number of permutations a1,a2,…,an of 1,2,…,n such that for every positive integer k with 1≤k≤n, there exists an integer r with 0≤r≤n−k which satisfies
1+2+⋯+k=ar+1+ar+2+⋯+ar+k. combinatoricscountingpermutationIndonesiaIndonesia MO