Problem 2177 · Medium

Find Three Consecutive Integers That Sum to a Given Number

Find three consecutive integers whose sum equals the target, or report that none exist. The visual centres the sum on the middle value and checks it against the target.

Open the interactive visualisation