What I understand from DFT formula below I can decide the N my self. I can try to use just 16 bins to describe a function or I may even use 4 , it won't be very accurate but I can do it right?

The confusing part is even most thrusted websites say next sentence taken from this link: The most general case allows for complex numbers at the input and results in a sequence of equal length .
That is extremely strange to me because lets say I have 100000 data , and complexity of fourier is Nlog(N), do I have to go with 100000log(100000). Why can't I go with less accurate but more efficient N=16. Why libraries won't implement like this?
Ps: As a computer science graduate I am sorry if my question is not scientific enough but I asked it to stackoverflow, DSP site etc.. but couldn't clear my mind. I hope I made my point this time .
You can certainly use $16$ or $4$ bins, yes. I find it strange that libraries don't implement arbitrary bin counts, but I suppose I would shrug and say it's probably because they're written for people dealing with much more data than you.
(Unless you're just trying to use 16 bins for large data sets for your own amusement, but then you should probably be writing your own DFT functions :P )