It is not difficult. Start with a simpler task: list all the odd numbers until you reach the input one. e.g.
input = 5
output = 135
If you are able to code such a function you can then proceed to
- print backward the odd numbers (31)
- make an outer loop calling your function.
If you don't get it ask here specific questions.