Skip to main content

On the Number of Distinct Squares in Finite Sequences: Some Old and New Results

  • Conference paper
  • First Online:
Combinatorics on Words (WORDS 2023)

Part of the book series: Lecture Notes in Computer Science ((LNCS,volume 13899))

Included in the following conference series:

  • 246 Accesses

Abstract

A square is a word of the form uu, where u is a finite word. The problem of determining the number of distinct squares in a finite word was initially explored by Fraenkel and Simpson in 1998. They proved that the number of distinct squares, denoted as \(\textrm{Sq}\left( w\right) \), in a finite word w of length n is upper bounded by 2n and conjectured that \(\textrm{Sq}\left( w\right) \) is no larger than n. In this note, we review some old and new findings concerning the square-counting problem and prove that \(\textrm{Sq}\left( w\right) \le n-\varTheta (\log _2(n))\).

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 64.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 84.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Notes

  1. 1.

    A Lyndon word indeed.

References

  1. Berge, C.: The Theory of Graphs and Its Applications. Greenwood Press (1982)

    Google Scholar 

  2. Brlek, S., Li, S.: On the number of squares in a finite word. arXiv e-prints arXiv:2204.10204, April 2022

  3. Deza, A., Franek, F., Thierry, A.: How many double squares can a string contain? Discret. Appl. Math. 180, 52–69 (2015)

    Article  MathSciNet  MATH  Google Scholar 

  4. Fraenkel, A.S., Simpson, J.: How many squares can a string contain? J. Comb. Theory Ser. A 82(1), 112–120 (1998)

    Google Scholar 

  5. Harju, T., Nowotka, D.: Periodicity and unbordered words. In: Diekert, V., Habib, M. (eds.) STACS 2004. LNCS, vol. 2996, pp. 294–304. Springer, Heidelberg (2004). https://doi.org/10.1007/978-3-540-24749-4_26

    Chapter  Google Scholar 

  6. Ilie, L.: A note on the number of distinct squares in a word. In: Brlek, S., Reutenauer, C. (eds.) Proceedings Words 2005, 5-th International Conference on Words, vol. 36, pp. 289–294. Publications du LaCIM, Montreal, 13–17 September 2005

    Google Scholar 

  7. Jonoska, N., Manea, F., Seki, S.: A stronger square conjecture on binary words. In: Geffert, V., Preneel, B., Rovan, B., Štuller, J., Tjoa, A.M. (eds.) SOFSEM 2014. LNCS, vol. 8327, pp. 339–350. Springer, Cham (2014). https://doi.org/10.1007/978-3-319-04298-5_30

    Chapter  Google Scholar 

  8. Lam, N.H.: On the number of squares in a string. AdvOL-Report 2 (2013)

    Google Scholar 

  9. Li, S.: A note on the Lie complexity and beyond. arXiv e-prints arXiv:2207.05859, July 2022

  10. Li, S.: An upper bound of the number of distinct powers in binary words. arXiv e-prints arXiv:2209.06891, September 2022

  11. Li, S., Pachocki, J., Radoszewski, J.: A note on the maximum number of \(k\)-powers in a finite word. arXiv e-prints arXiv:2205.10156, May 2022

  12. OEIS Foundation Inc.: The On-Line Encyclopedia of Integer Sequences (2023). http://oeis.org

  13. Thierry, A.: A proof that a word of length n has less than 1.5n distinct squares. arXiv e-prints arXiv:2001.02996, January 2020

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Shuo Li .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2023 The Author(s), under exclusive license to Springer Nature Switzerland AG

About this paper

Check for updates. Verify currency and authenticity via CrossMark

Cite this paper

Brlek, S., Li, S. (2023). On the Number of Distinct Squares in Finite Sequences: Some Old and New Results. In: Frid, A., Mercaş, R. (eds) Combinatorics on Words. WORDS 2023. Lecture Notes in Computer Science, vol 13899. Springer, Cham. https://doi.org/10.1007/978-3-031-33180-0_3

Download citation

  • DOI: https://doi.org/10.1007/978-3-031-33180-0_3

  • Published:

  • Publisher Name: Springer, Cham

  • Print ISBN: 978-3-031-33179-4

  • Online ISBN: 978-3-031-33180-0

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics