Some testcases are wrong. 15 is not actually a Queneau number, since the sequence has order of 5.

It repeats 3 times in the output, while the definition of a Queneau number states that permutation should consist of a single cycle of length n.

# [Community Puzzle] Queneau Numbers

**magaiti**#1

**player_one**#3

Hmm... You're right. Rather than change the tests, though, I'd recommend changing the description to state "Queneau-like numbers", and to define this as the set of numbers *n* such that the Queneau-Daniel permutation *Qn* is of order *m*, where *m* is a factor of *n*. Make sense?

Otherwise we will likely invalidate the more than 200 existent solutions.

- danBhentschel

**Niako**#4

magaiti is right and the problem has not been corrected (see also http://oeis.org/A054639).