A386639 Triangle T(n,k) read by rows, where row n is a permutation of the numbers 1 through n, such that if a deck of n cards is prepared in this order, and the AP dealing is used, then the resulting cards will be dealt in increasing order.
1, 2, 1, 3, 1, 2, 2, 1, 4, 3, 3, 1, 4, 5, 2, 4, 1, 6, 3, 2, 5, 5, 1, 3, 4, 2, 6, 7, 3, 1, 7, 5, 2, 6, 8, 4, 7, 1, 8, 6, 2, 9, 4, 5, 3, 9, 1, 8, 5, 2, 4, 7, 6, 3, 10, 5, 1, 6, 4, 2, 10, 11, 7, 3, 8, 9, 7, 1, 4, 9, 2, 11, 10, 8, 3, 6, 5, 12, 4, 1, 13, 11, 2, 10, 6, 7, 3, 5, 12, 9, 8, 10, 1, 7, 6, 2, 12, 8, 5, 3, 14
Offset: 1
Examples
Consider a deck of four cards arranged in the order 2,1,4,3. We put one card under and deal the next card, which is card number 1. Now the deck is ordered 4,3,2. We place 2 cards under and deal the next one, which is card number 2. Now the deck is 4,3. Again, placing 3 cards under and dealing the next, we will deal card number 3, leaving card number 4 to be dealt last. The dealt cards are in order. Thus, the fourth row of the triangle is 2,1,4,3. The triangle begins as follows: 1; 2, 1; 3, 1, 2; 2, 1, 4, 3; 3, 1, 4, 5, 2; 4, 1, 6, 3, 2, 5; 5, 1, 3, 4, 2, 6, 7; 3, 1, 7, 5, 2, 6, 8, 4; 7, 1, 8, 6, 2, 9, 4, 5, 3;
Comments