so if he put them in 2 stacks and there was 1 card left over, he has an odd number of cards
when he put them in 3 stacks there was 1 card left over we can tell that if he took away one of his card and divided the stack of cards by two or three the number would be the same
so he divides it by 4 5 and 6 so the number of cards is not divisible by 2,3,4,5,6 but it is divisable by 7 so we must find a number that when you subtract one you can divide it by 2,3,4,5,6 so i just guessed a term from 7^n so 49 doesn't work because 48 doesn't divide into 5 343 doesn't work because 342 doesn's divide by 6 but 2401 (7^4) works because 2400 divides evenly by 2,3,4,5, and 6
Just a note, this number is not very logical that he would have time to count them all but hey, it's math
The boy has 301 baseball cards, and any number in the form of 420m + 301 (for integer m) is a possible number of cards he could have. The conditions reveal multiple valid solutions, with 301 being the smallest. More generally, the problem can be solved using modular arithmetic and the least common multiple concept.
;