Is there any trick to learn the atomic numbers of all elements??
The easy way to memorize the periodic table is to use your creativity and make stories. For example, while remembering the elements of group 13, Boron, Aluminum, Gallium, Indium and Thallium, use the initials and you get BAGIT. BAGIT is easy to remember.
Again for group 14 elements, (Carbon, Silicon, Germanium, Tin and Lead) Carbon and Silicon chips made dirty with germs, tin and lead.
Hope this gives you an idea on how to proceed. Best of luck!