Problem 446 · Hard

Arithmetic Slices II

Count arithmetic subsequences of at least three indices, where consecutive gaps are equal. The visual tracks, for each endpoint and common difference, how many shorter subsequences the current value can extend.

Open the interactive visualisation