Generating key points…
Answers are grounded in this paper and cite their sources.
Let \(SP(w)\) count distinct nonempty palindromic subsequences of a word \(w\) of length \(n\) using exactly \(q≥ n/2\) different letters. Put \(r=n-q\) and \(k=2q-n\). The established maximum is \((k+2)2^r-2\). Equality holds exactly for the nested form \[a_1⋯ a_r\,b_1⋯ b_k\,a_r⋯ a_1, \] or, when \(k=0\) and \(r≥2\), for \(a_1⋯ aᵣ₋₂\,bcbc\,aᵣ₋₂⋯ a_1\). Differently named letters are distinct and empty blocks are omitted. Deleting a singleton keeps the repeat budget \(r\) fixed. Equality requires every eligible subset of positions to produce a distinct palindrome centered at that singleton, forcing nesting around the singleton block. At \(n=2q\), a gap comparison permits the alternating core as the sole other form. With no fixed alphabet size, the same characterization gives all extremizers. At odd length \(2m+1\) there are \(m\) nested pairs and one singleton. At positive even length \(2m\), either \(q=m\) with no singletons or \(q=m+1\) with two singletons is allowed, using the forms above. The empty word is the sole length-zero case. Mahalingam and Pandoh, §6, final classification question
No takes yet. Share an insight, caveat, or question.
Zixuan He (2026) studied this question.
Synapse has enriched 8 closely related papers on similar clinical questions. Consider them for comparative context: