This question was on the hot network questions today: Function which creates the sequence 1, 2, 3, 1, 2, 3, ...

While it certainly has some pedantic value, it's not very interesting mathematically and, more importantly, it's been asked before. Those are just the ones I could find with a quick google search; I'm sure many more have been asked as I recall seeing them. They aren't exactly the same, but close enough to be considered duplicates - the answer is invariable a simple arithmetic formula using modulo, or, if the asker forbids that, a work-around using floor, ceiling, or sine/cosine.

Is there a single duplicate that we have for these questions and if not, should there be?

  • $\begingroup$ I saved this question (math.stackexchange.com/questions/1790642/…) from closing for the purpose of addressing similar concerns. $\endgroup$ Mar 6, 2018 at 12:21
  • 1
    $\begingroup$ A big list of abstract duplicates are recorded. I think it is a very useful resources (though it seems not many are using it). I cannot find your question there. I think this one could be added to the thread, under sequence/series. $\endgroup$
    – user99914
    Mar 7, 2018 at 20:28


You must log in to answer this question.

Browse other questions tagged .