1. A user terminal comprising: a receiver that receives from a base station a radio signal indicating initial allocation location information of a resource for transmitting a discovery signal to discover another user terminal; a processor that switches a location of the resource to transmit the discovery signal, per period, in accordance with a pre-rule; and a transmitter that transmits the discovery signal based on the switched location of the resource, wherein index numbers are assigned to individual resources that neighbor each other in two-dimensional directions including a frequency direction and a time direction, and the transmitter transmits the discovery signal with one of the individual resources in which index numbers that are aligned in the frequency direction are rearranged into the time direction by the processor, per period, in accordance with the pre-rule.