Ah, the SQLite approach!
It is also the bash approach, isn’t it?!
You can calculate n and n?