I learned a card trick and cannot figure out the math to it. Take a deck of cards, count out 26 cards one on top of the other in a pile face up(make note of the 7th card), then flip the pile over face down.
Now, with the remaining cards, flip the top one over. If it is a 6, count out 4 more cards from the remaining deck(make a solitaire like column) to equal ten. Now start another column by flipping over another card from the remaining deck, if it is a King, do not flip over another card(10 through king = 10). Now start a third column by flipping over another card from the remaining deck, if it is a 2, count out 8 cards from the remaining deck to equal 10. Only make three columns.
Now put the remaining cards face down on the cards you counted out originally. Now add up the three cards that started the three columns 6+K(10)+2= 18. Now count out 18 cards from the face down deck by flipping them over one by one. The 18th card will be the 7th card you noted as you counted out the original 26. What ever those three cards add up to @ the top of the three columns, it will always be the 7th card.