Problem 44340. Recaman Sequence - III
I want to create a Recaman sequence where there is a "1" in the n-th position. So from which integer should I start the Recaman sequence? If there are more than one starting integer that generates a sequence with a 1 in the n-th position, return the lowest one.
For example if I want to place the digit 1 in the 7th place in the sequence then I should start the sequence from six as follow;
You can also start the sequence with 12 and obtain a series where there is a 1 in 7th position;
Related Challenges :
Solution CommentsShow comments
Problem Recent Solvers84