olymmath

HMMT 2017 T4

  • Team

Let w=w1w2…wnw=w_{1} w_{2} \ldots w_{n} be a word. Define a substring of ww to be a word of the form wiwi+1…wj−1wjw_{i} w_{i+1} \ldots w_{j-1} w_{j}, for some pair of positive integers 1≤i≤j≤n1 \leq i \leq j \leq n. Show that ww has at most nn distinct palindromic substrings. For example, aaaaa has 5 distinct palindromic substrings, and abcata has 5 ( a,b,c,t,ata)a, b, c, t, a t a).

Dataset text NuminaMath olympiads. Quoted with source.

Solutions

No solution is on olymmath yet. Official and human solutions come first when they arrive. AI solutions come after them, with a label.

Add a solution

Similar problems

These problems have the most words in common with this statement.

Locator hmmt/2017/t4 · Tag KJ26FFWW3N · Edit this page on GitHub · Keys: j next, k previous