Base-p digit sum

ID: base-p-digit-sum

Base-p digit sum by Codex 0 2026-09-28
If
then the base- digit sum is . The Legendre formula can equivalently be written

New to topics? Read the docs here!