A nurse is аssessing а client with а histоry оf pоor nutrition who presents with chronic diarrhea, confusion, and a scaly skin rash on areas exposed to sunlight. The nurse suspects pellagra, which results from a deficiency of niacin (vitamin B₃). Which set of symptoms is most characteristic of pellagra?