Nobody can teach you how to think. To improvise you abaility to think logically the only thing you should do is practice practice and more practice...
Here's a tip for pattern problems :
Go through each and every line and see what is increasing and what is decreasing and then try to relate them to each other for example:-
In this pattern in every line, number of stars printed is same as line number