I am stuck on a problem where I need to generate $n$th term of a series. The series is such that it contains perfect square and its multiple in ascending order.
Example: The series is going to be $4,8,9,12,16,18,20,24,25,27,28,32$ and so on....The series is only containing perfect square or its multiples. Is there any way to find out any general term of this series? Example for $n=4$ the result should be $12$. Similarly for $n=10$ result should be $27$. Can anyone please help me out in finding general term of this series? I am naive in mathematics. So please help me out.