I think you need to better define your requirements. "non-equally spaced numbers" is very vague. @RafaelC offers a solid solution. But you way have further requirements we are not aware of.
@rahlf23 It is vague on purpose. I'm looking for a flexible function (if it exist). And as I stated in my question, it will not always have the same spacing.
@Hamidreza I'm aware that I can build my own function, nut I'm new to numpy and I want to know if there's a predefined tool for this. Maybe the answer is that there's none and that I must build my own.
[2]**np.arange(6)[2**i for i in range(6)]