Cargando…

Formulas and algorithms for the length of a Farey sequence

This paper proves several novel formulas for the length of a Farey sequence of order n. The formulas use different trade-offs between iteration and recurrence and they range from simple to more complex. The paper also describes several iterative algorithms for computing the length of a Farey sequenc...

Descripción completa

Detalles Bibliográficos
Autores principales: Sukhoy, Vladimir, Stoytchev, Alexander
Formato: Online Artículo Texto
Lenguaje:English
Publicado: Nature Publishing Group UK 2021
Materias:
Acceso en línea:https://www.ncbi.nlm.nih.gov/pmc/articles/PMC8593030/
https://www.ncbi.nlm.nih.gov/pubmed/34782723
http://dx.doi.org/10.1038/s41598-021-99545-w
_version_ 1784599621866094592
author Sukhoy, Vladimir
Stoytchev, Alexander
author_facet Sukhoy, Vladimir
Stoytchev, Alexander
author_sort Sukhoy, Vladimir
collection PubMed
description This paper proves several novel formulas for the length of a Farey sequence of order n. The formulas use different trade-offs between iteration and recurrence and they range from simple to more complex. The paper also describes several iterative algorithms for computing the length of a Farey sequence based on these formulas. The algorithms are presented from the slowest to the fastest in order to explain the improvements in computational techniques from one version to another. The last algorithm in this progression runs in [Formula: see text] time and uses only [Formula: see text] memory, which makes it the most efficient algorithm for computing [Formula: see text] described to date. With this algorithm we were able to compute the length of the Farey sequence of order [Formula: see text] .
format Online
Article
Text
id pubmed-8593030
institution National Center for Biotechnology Information
language English
publishDate 2021
publisher Nature Publishing Group UK
record_format MEDLINE/PubMed
spelling pubmed-85930302021-11-16 Formulas and algorithms for the length of a Farey sequence Sukhoy, Vladimir Stoytchev, Alexander Sci Rep Article This paper proves several novel formulas for the length of a Farey sequence of order n. The formulas use different trade-offs between iteration and recurrence and they range from simple to more complex. The paper also describes several iterative algorithms for computing the length of a Farey sequence based on these formulas. The algorithms are presented from the slowest to the fastest in order to explain the improvements in computational techniques from one version to another. The last algorithm in this progression runs in [Formula: see text] time and uses only [Formula: see text] memory, which makes it the most efficient algorithm for computing [Formula: see text] described to date. With this algorithm we were able to compute the length of the Farey sequence of order [Formula: see text] . Nature Publishing Group UK 2021-11-15 /pmc/articles/PMC8593030/ /pubmed/34782723 http://dx.doi.org/10.1038/s41598-021-99545-w Text en © The Author(s) 2021 https://creativecommons.org/licenses/by/4.0/Open AccessThis article is licensed under a Creative Commons Attribution 4.0 International License, which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons licence, and indicate if changes were made. The images or other third party material in this article are included in the article's Creative Commons licence, unless indicated otherwise in a credit line to the material. If material is not included in the article's Creative Commons licence and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder. To view a copy of this licence, visit http://creativecommons.org/licenses/by/4.0/ (https://creativecommons.org/licenses/by/4.0/) .
spellingShingle Article
Sukhoy, Vladimir
Stoytchev, Alexander
Formulas and algorithms for the length of a Farey sequence
title Formulas and algorithms for the length of a Farey sequence
title_full Formulas and algorithms for the length of a Farey sequence
title_fullStr Formulas and algorithms for the length of a Farey sequence
title_full_unstemmed Formulas and algorithms for the length of a Farey sequence
title_short Formulas and algorithms for the length of a Farey sequence
title_sort formulas and algorithms for the length of a farey sequence
topic Article
url https://www.ncbi.nlm.nih.gov/pmc/articles/PMC8593030/
https://www.ncbi.nlm.nih.gov/pubmed/34782723
http://dx.doi.org/10.1038/s41598-021-99545-w
work_keys_str_mv AT sukhoyvladimir formulasandalgorithmsforthelengthofafareysequence
AT stoytchevalexander formulasandalgorithmsforthelengthofafareysequence