A terminal device comprising: a transmitting unit configured to transmit, to a base station device, a demodulation reference signal associated with transmission of a physical uplink shared channel, a demodulation reference signal sequence of the demodulation reference signal being given by a reference signal sequence, the reference signal sequence being defined by a cyclic shift of a base sequence, a plurality of base sequences being divided into groups, the base sequence being given by a sequence group number of the group and a base sequence number within the group, the sequence group number being given by a first parameter, wherein a value of the first parameter is given by a value of first information in a case that the value of the first information is configured by a Radio Resource Control, RRC, signaling and the transmission of the physical uplink shared channel corresponds to downlink control information to which Cyclic Redundancy Check, CRC, parity bits scrambled by a Cell-Radio Network Temporary Identifier, C-RNTI, are attached, the downlink control information to which the CRC parity bits scrambled by the C-RNTI are attached being received on an Enhanced-Physical Downlink Control Channel, E-PDCCH, and a value of the first parameter is given by a physical layer cell identity in a case that the transmission of the physical uplink shared channel corresponds to downlink control information to which CRC parity bits scrambled by a temporary C-RNTI are attached, the downlink control information to which the CRC parity bits scrambled by the temporary C-RNTI are attached being received on a Physical Downlink Control Channel, PDCCH. a transmitting unit configured to transmit, to a base station device, a demodulation reference signal associated with transmission of a physical uplink shared channel, a demodulation reference signal sequence of the demodulation reference signal being given by a reference signal sequence, the reference signal sequence being defined by a cyclic shift of a base sequence, a plurality of base sequences being divided into groups, the base sequence being given by a sequence group number of the group and a base sequence number within the group, the sequence group number being given by a first parameter, wherein a value of the first parameter is given by a value of first information in a case that the value of the first information is configured by a Radio Resource Control, RRC, signaling and the transmission of the physical uplink shared channel corresponds to downlink control information to which Cyclic Redundancy Check, CRC, parity bits scrambled by a Cell-Radio Network Temporary Identifier, C-RNTI, are attached, the downlink control information to which the CRC parity bits scrambled by the C-RNTI are attached being received on an Enhanced-Physical Downlink Control Channel, E-PDCCH, and a value of the first parameter is given by a physical layer cell identity in a case that the transmission of the physical uplink shared channel corresponds to downlink control information to which CRC parity bits scrambled by a temporary C-RNTI are attached, the downlink control information to which the CRC parity bits scrambled by the temporary C-RNTI are attached being received on a Physical Downlink Control Channel, PDCCH.