Use a for loop to generate scale factors.
LOG10 for decades and LOG2 for octaves where the loop counter is the input.
Divide the loop counter by the number of points you want in each decade/octave, then scale the output array of the for loop by the start frequency.
The example shows the equal tempered scale note frequencies starting at 400Hz.