{'fraction_non_alphanumeric': 0.017114914425427872, 'fraction_numerical': 0.009779951100244499, 'mean_word_length': 4.942028985507246, 'pattern_counts': {'":': 0, '<': 0, '<?xml version=': 0, '>': 0, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
Sums of Polynomial Residues

In an article in the Monthly from 1904, Orlando Stetson studied the sums of distinct residues of triangular numbers modulo a prime. Rather curiously, this sum is always the same residue class independent of the prime chosen. We extend Stetson’s theorem to all polygonal numbers and find similar phenomenon. Extensions to sums of residues of general polynomials are also discussed.