Repetitive transcranial magnetic stimulation (rTMS) can be used to modulate brain rhythms and cognitive behaviors related to “giving up” during problem-solving tasks.