So My math professor did a card trick with me where he gave me a set of normal 52 cards and let me shuffle them however I like, he even said that i can arrange them however I would like. Next, he asked me to think of any random number from 1-10 inclusive, and to keep it to myself. lets say i chose 7. He then asks me to slowly drop 7 cards, going one after the other, when i reach the 7th card, i observe its value and continue adding cards over the pile with its value. so if the 7th card was 6, I would add 6 more then observe the 6th card and so on. You repeat this process smoothly and continuously so he doesn't know where i am with the counting. Also, jack counts as 4 (j,a,c,k), queen as 5, king as 4, and the joker as 5.
The trick: I kept doing this and then midway while i was counting in my head he started counting out loud the numbers i was in! so lets say i got 7, then 6, then jack, then 9, he started counting with me 1,2,3!
I've tried thinking about this but it just seems crazy! he reassured me that it involves math only and no cheap tricks, but the way i look at it it seems so random, i could've arranged the cards in any way and chosen any number from 1-10!
I don't want full explanations on this, i just want a hint to start thinking about this, I think that the fact there is an extra 8 4s and 6 5s has to do with something but i am not sure how??