4G/LTE  PHY Channel 

PUCCH Format 2,2a,2b
There are many topics in LTE (especially on PHY layer) which cannot be cleary explained without going through each parameters and equations shown in the specification. Physical resource allocation is one of these topics. Physical resource allocation for PUCCH format 2, 2a, 2b is determined by the following process. Don't get panic, equation itself is all within high school math. Only our patience and persistance is required.
First get some outstanding big picture and try to figure out how the big picture is implemented by the following math process. i) PUCCH is located around the extreme end of the system bandwidth in frequency domain. ii) The location of a PUCCH alternates between the two edges when slot number changes. iii) For PUCCH format 2,2a,2b case, the only variable set by the higher layer message (SIB2) is n(2) PUCCH and all the other parameters are predefined or calculated by a predefined equation. I put the Excel spreadsheet to calculate the location here. (I haven't extensively tested my calculation. Let me know if you find any problem).
NOTE : Regarding how each of these format are utilized and configured in signaling, check out this tutorial of Amarisoft TechAcademy.
< PUCCH Format 2  RB Mapping >
If you see a UL frame carrying a PUCCH (single PUCCH), it would look as follows.
< PUCCH Format 1  Frequency Spectrum >
Signal Generation of UCCH Format 2
Step 1 : Generation of d( ). By this process, 20 bit data b() is converted into 10 complex number d( ).
< PUCCH Format 2 Signal Generation  d() >
Step 2 : Generation of z( ). By this process, the 10 complex number d( ) is spreaded into 120 complex number z( ).
< PUCCH Format 2 Signal Generation  z() >
Step 3 : Mapping z( ) to each resource elements. Assuming that a(n_s,l) is zero, we can map each of z( ) values to each RE of PUCCH Format 2 Resource block as shown below.
< PUCCH Format 2 Signal Generation  RE Mapping >

