Lemma
MediumDivisibility
AQuA-RAT train #19927 · Number Theory · Divisibility

For positive integers k and n, the k-power remainder of n is…

For positive integers k and n, the k-power remainder of n is defined as r in the following equation: n = k^w + r, where w is the largest integer such that r is not negative. For instance, the 3-power remainder of 13 is 4, since 13 = 3^2 + 4. In terms of k and w, what is the largest possible value of r that satisfies the given conditions?

~8 minAnswer checked instantly

AQuA-RAT — Algebra Question Answering with Rationales (Ling et al., DeepMind, 2017) · train #19927

Stuck? A gentle nudge

No hints for this one.

Something off?
Workspace
Your answer

Checked against the answer in AQuA-RAT.