First off, you have some syntax errors.
c=$((c+1))
should be
c=$((c+=1))
Similarly,
p=$((p-1))
should be
p=$((p-=1))
Next, "a" and "b" never change, so they will never be equal !!! That guarantees always working thru 60 values for "p", but that can be achieved without the test comparing "a to "b" (that code segment is superfluous).
The echo stating "running in ..." seems arbitrary and detached from the fact that there is nothing following that which will actually restart the script!
I can only deduce that you did not fully understand what you were trying to do or how to go about it.
So ... I suggest you consider the following guidance.
If you start by writing the code logic
- in pseudo-code,
- fine-grained for each task that you are trying to accomplish,
- in the correct sequence and
- in the correct context,
then having that worded so that it does exactly what you want it to do ... will, almost explicitly, tell you WHAT you need to code for each of those, not the HOW. The HOW is the nitty gritty of coding.
What you have provided above in your question does not reflect the necessary separation of logical elements or details to address the required task breakdown.
If you give that a try, the solution will almost pop out of the page at you.